diff options
author | lewo <lewo@abesis.fr> | 2018-06-18 10:07:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-18 10:07:44 +0200 |
commit | 7a61c728e5c74b413d20110ae1ea629bf451ea27 (patch) | |
tree | aaa17a31af634950205a809f4cb360d174edceb6 /nixos/modules/services | |
parent | 0ae60f98c4e9f09c0c314fa8157eb60d64f43f9e (diff) | |
parent | 783eb8438a019f99feca0cab1ae3c9516e8040ae (diff) | |
download | nixlib-7a61c728e5c74b413d20110ae1ea629bf451ea27.tar nixlib-7a61c728e5c74b413d20110ae1ea629bf451ea27.tar.gz nixlib-7a61c728e5c74b413d20110ae1ea629bf451ea27.tar.bz2 nixlib-7a61c728e5c74b413d20110ae1ea629bf451ea27.tar.lz nixlib-7a61c728e5c74b413d20110ae1ea629bf451ea27.tar.xz nixlib-7a61c728e5c74b413d20110ae1ea629bf451ea27.tar.zst nixlib-7a61c728e5c74b413d20110ae1ea629bf451ea27.zip |
Merge pull request #41909 from aespinosa/nexus-package
nixos/nexus: allow overriding the package
Diffstat (limited to 'nixos/modules/services')
-rw-r--r-- | nixos/modules/services/web-apps/nexus.nix | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/nixos/modules/services/web-apps/nexus.nix b/nixos/modules/services/web-apps/nexus.nix index d5bd0f12febb..b0eaee6040e3 100644 --- a/nixos/modules/services/web-apps/nexus.nix +++ b/nixos/modules/services/web-apps/nexus.nix @@ -13,6 +13,12 @@ in services.nexus = { enable = mkEnableOption "Sonatype Nexus3 OSS service"; + package = mkOption { + type = types.package; + default = pkgs.nexus; + description = "Package which runs Nexus3"; + }; + user = mkOption { type = types.str; default = "nexus"; @@ -55,10 +61,10 @@ in -XX:LogFile=${cfg.home}/nexus3/log/jvm.log -XX:-OmitStackTraceInFastThrow -Djava.net.preferIPv4Stack=true - -Dkaraf.home=${pkgs.nexus} - -Dkaraf.base=${pkgs.nexus} - -Dkaraf.etc=${pkgs.nexus}/etc/karaf - -Djava.util.logging.config.file=${pkgs.nexus}/etc/karaf/java.util.logging.properties + -Dkaraf.home=${cfg.package} + -Dkaraf.base=${cfg.package} + -Dkaraf.etc=${cfg.package}/etc/karaf + -Djava.util.logging.config.file=${cfg.package}/etc/karaf/java.util.logging.properties -Dkaraf.data=${cfg.home}/nexus3 -Djava.io.tmpdir=${cfg.home}/nexus3/tmp -Dkaraf.startLocalConsole=false @@ -112,7 +118,7 @@ in fi ''; - script = "${pkgs.nexus}/bin/nexus run"; + script = "${cfg.package}/bin/nexus run"; serviceConfig = { User = cfg.user; |