lol

Merge pull request #18500 from tvon/fix/gocd-server-options

gocd-server: add startupOptions, empty extraOptions

authored by

Joachim F and committed by
GitHub
c571a7f2 09646cc8

+13 -3
+1 -1
nixos/modules/services/continuous-integration/gocd-agent/default.nix
··· 98 98 ]; 99 99 description = '' 100 100 Specifies startup command line arguments to pass to Go.CD agent 101 - java process. Example contains debug and gcLog arguments. 101 + java process. 102 102 ''; 103 103 }; 104 104
+12 -2
nixos/modules/services/continuous-integration/gocd-server/default.nix
··· 90 90 ''; 91 91 }; 92 92 93 - extraOptions = mkOption { 93 + startupOptions = mkOption { 94 94 default = [ 95 95 "-Xms${cfg.initialJavaHeapSize}" 96 96 "-Xmx${cfg.maxJavaHeapMemory}" ··· 103 103 "-Dcruise.server.port=${toString cfg.port}" 104 104 "-Dcruise.server.ssl.port=${toString cfg.sslPort}" 105 105 ]; 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 = [ ]; 106 115 example = [ 107 116 "-X debug" 108 117 "-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005" ··· 169 178 170 179 script = '' 171 180 ${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} \ 173 183 -jar ${pkgs.gocd-server}/go-server/go.jar 174 184 ''; 175 185