materusPC: java settings

This commit is contained in:
Mateusz Słodkowicz 2024-09-26 00:04:39 +02:00
parent 710108fd6f
commit 8327d4cfd3
Signed by: materus
GPG Key ID: 28D140BCA60B4FD1
6 changed files with 28 additions and 5 deletions

View File

@ -7,6 +7,7 @@
./vm ./vm
./secrets ./secrets
./containers ./containers
./other
./scripts.nix ./scripts.nix
./tmp.nix ./tmp.nix
@ -15,7 +16,6 @@
./kde.nix ./kde.nix
./audio.nix ./audio.nix
./apps.nix
]; ];

View File

@ -71,7 +71,7 @@
freetype.dev freetype.dev
fpc fpc
openjdk21 gradle
bison bison
flex flex
@ -109,6 +109,10 @@
]; ];
}; };
home.file.".gradle/gradle.properties".text = ''
org.gradle.java.installations.fromEnv=JAVA_8_HOME,JAVA_17_HOME,JAVA_21_HOME
org.gradle.home=${pkgs.jdk21}
'';
xdg.desktopEntries.brave-browser = xdg.desktopEntries.brave-browser =
let let

View File

@ -0,0 +1,8 @@
{ ... }:
{
imports = [
./apps.nix
./java.nix
];
}

View File

@ -0,0 +1,14 @@
{ pkgs, ... }:
{
programs = {
java.enable = true;
java.package = pkgs.jdk;
java.binfmt = true;
};
environment.variables = {
JAVA_8_HOME = pkgs.jdk8;
JAVA_17_HOME = pkgs.jdk17;
JAVA_21_HOME = pkgs.jdk21;
};
}

View File

@ -166,9 +166,6 @@
environment.shells = with pkgs; [ zsh bashInteractive fish ]; environment.shells = with pkgs; [ zsh bashInteractive fish ];
programs = { programs = {
fish.enable = true; fish.enable = true;
java.enable = true;
java.package = pkgs.graalvm-ce;
java.binfmt = true;
command-not-found.enable = false; command-not-found.enable = false;
dconf.enable = true; dconf.enable = true;
}; };