Merge pull request #244323 from SuperSandro2000/nexus

authored by Sandro and committed by GitHub 2a2c6aeb 69deaa75

+4 -18
+4 -18
nixos/modules/services/web-apps/nexus.nix
··· 12 services.nexus = { 13 enable = mkEnableOption (lib.mdDoc "Sonatype Nexus3 OSS service"); 14 15 - package = mkOption { 16 - type = types.package; 17 - default = pkgs.nexus; 18 - defaultText = literalExpression "pkgs.nexus"; 19 - description = lib.mdDoc "Package which runs Nexus3"; 20 - }; 21 22 - jdkPackage = mkOption { 23 - type = types.package; 24 - default = pkgs.openjdk8; 25 - defaultText = literalExample "pkgs.openjdk8"; 26 - example = literalExample "pkgs.openjdk8"; 27 - description = '' 28 - The JDK package to use. 29 - ''; 30 - }; 31 32 user = mkOption { 33 type = types.str; ··· 114 config = mkIf cfg.enable { 115 users.users.${cfg.user} = { 116 isSystemUser = true; 117 - group = cfg.group; 118 - home = cfg.home; 119 createHome = true; 120 }; 121 ··· 132 NEXUS_USER = cfg.user; 133 NEXUS_HOME = cfg.home; 134 135 - INSTALL4J_JAVA_HOME = "${cfg.jdkPackage}"; 136 VM_OPTS_FILE = pkgs.writeText "nexus.vmoptions" cfg.jvmOpts; 137 }; 138
··· 12 services.nexus = { 13 enable = mkEnableOption (lib.mdDoc "Sonatype Nexus3 OSS service"); 14 15 + package = lib.mkPackageOption pkgs "nexus" { }; 16 17 + jdkPackage = lib.mkPackageOption pkgs "openjdk8" { }; 18 19 user = mkOption { 20 type = types.str; ··· 101 config = mkIf cfg.enable { 102 users.users.${cfg.user} = { 103 isSystemUser = true; 104 + inherit (cfg) group home; 105 createHome = true; 106 }; 107 ··· 118 NEXUS_USER = cfg.user; 119 NEXUS_HOME = cfg.home; 120 121 + INSTALL4J_JAVA_HOME = cfg.jdkPackage; 122 VM_OPTS_FILE = pkgs.writeText "nexus.vmoptions" cfg.jvmOpts; 123 }; 124