1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-10 21:29:48 +01:00

gradle: Don't enable programs.java

The gradle package from nixpkgs will install a default Java version and
pass it to the gradle executable without polluting the global env.
Users can customize this by overriding the gradle package like so:

  programs.gradle = {
    package = (pkgs.gradle.override {
      java = pkgs.jdk21;
    });
  }
This commit is contained in:
Benedikt Ritter 2024-01-18 00:12:08 +01:00 committed by Mikilio
parent 5a31b0b80f
commit 2fa2cf99e3
No known key found for this signature in database
GPG key ID: 5B2F1A890CF33F3F

View file

@ -108,7 +108,5 @@ in {
home.sessionVariables = mkIf (cfg.home != defaultHomeDirectory) {
GRADLE_USER_HOME = gradleHome;
};
programs.java.enable = true;
};
}