mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 17:39:37 +08: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:
@@ -108,7 +108,5 @@ in {
|
||||
home.sessionVariables = mkIf (cfg.home != defaultHomeDirectory) {
|
||||
GRADLE_USER_HOME = gradleHome;
|
||||
};
|
||||
|
||||
programs.java.enable = true;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user