@@ -90,7 +90,7 @@ in {
9090 '';
9191 };
9292
93− extraOptions = mkOption {
93+ startupOptions = mkOption {
9494 default = [
9595 "-Xms${cfg.initialJavaHeapSize}"
9696 "-Xmx${cfg.maxJavaHeapMemory}"
@@ -103,6 +103,15 @@ in {
103103 "-Dcruise.server.port=${toString cfg.port}"
104104 "-Dcruise.server.ssl.port=${toString cfg.sslPort}"
105105 ];
106+
107+ description = ''
108+ Specifies startup command line arguments to pass to Go.CD server
109+ java process.
110+ '';
111+ };
112+
113+ extraOptions = mkOption {
114+ default = [ ];
106115 example = [
107116 "-X debug"
108117 "-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"
@@ -169,7 +178,8 @@ in {
169178
170179 script = ''
171180 ${pkgs.git}/bin/git config --global --add http.sslCAinfo /etc/ssl/certs/ca-certificates.crt
172− ${pkgs.jre}/bin/java -server ${concatStringsSep " " cfg.extraOptions} \
181+ ${pkgs.jre}/bin/java -server ${concatStringsSep " " cfg.startupOptions} \
182+ ${concatStringsSep " " cfg.extraOptions} \
173183 -jar ${pkgs.gocd-server}/go-server/go.jar
174184 '';
175185