nixos-config/configurations/host/materusPC/other/java.nix

15 lines
296 B
Nix
Raw Normal View History

2024-09-26 00:04:39 +02:00
{ pkgs, ... }:
{
programs = {
java.enable = true;
java.package = pkgs.jdk;
java.binfmt = true;
};
environment.variables = {
JAVA_8_HOME = "${pkgs.jdk8}/lib/openjdk/";
JAVA_17_HOME = "${pkgs.jdk17}/lib/openjdk/";
JAVA_21_HOME = "${pkgs.jdk21}/lib/openjdk/";
2024-09-26 00:04:39 +02:00
};
}