Skip to content

Commit

Permalink
nixos/nexus: fix missing jdk opts for java 17
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas-mertens committed Sep 3, 2024
1 parent 4adf21d commit fb56309
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions nixos/modules/services/web-apps/nexus.nix
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,22 @@ in
for further information.
'';
};

jdkOpts = mkOption {
type = types.lines;
default = ''
--add-opens=java.base/java.util=ALL-UNNAMED
--add-opens=java.base/java.net=ALL-UNNAMED
'';
defaultText = literalExpression ''
'''
--add-opens=java.base/java.util=ALL-UNNAMED
--add-opens=java.base/java.net=ALL-UNNAMED
'''
'';

description = '' Options passed to JDK_JAVA_OPTIONS'';
};
};
};

Expand All @@ -118,6 +134,7 @@ in

INSTALL4J_JAVA_HOME = cfg.jdkPackage;
VM_OPTS_FILE = pkgs.writeText "nexus.vmoptions" cfg.jvmOpts;
JDK_JAVA_OPTIONS = cfg.jdkOpts;
};

preStart = ''
Expand Down

0 comments on commit fb56309

Please sign in to comment.