diff --git a/src/modules/languages/java.nix b/src/modules/languages/java.nix index 17c3f6140..6d79771c5 100644 --- a/src/modules/languages/java.nix +++ b/src/modules/languages/java.nix @@ -32,7 +32,7 @@ in enable = mkEnableOption "gradle"; package = mkOption { type = types.package; - defaultText = literalExpression "pkgs.gradle.override { jdk = cfg.jdk.package; }"; + defaultText = literalExpression "pkgs.gradle.override { java = cfg.jdk.package; }"; description = '' The Gradle package to use. The Gradle package by default inherits the JDK from `languages.java.jdk.package`.