Merge pull request #17469 from ericsagnes/module/hydra

Improvements to Hydra module

authored by

Domen Kožar and committed by
GitHub
acaa6a4c 2e9a3c36

+7 -2
+7 -2
nixos/modules/services/continuous-integration/hydra/default.nix
··· 166 167 buildMachinesFiles = mkOption { 168 type = types.listOf types.path; 169 - default = []; 170 example = [ "/etc/nix/machines" "/var/lib/hydra/provisioner/machines" ]; 171 description = "List of files containing build machines."; 172 }; ··· 193 194 config = mkIf cfg.enable { 195 196 - users.extraGroups.hydra = { }; 197 198 users.extraUsers.hydra = 199 { description = "Hydra"; ··· 201 createHome = true; 202 home = baseDir; 203 useDefaultShell = true; 204 }; 205 206 users.extraUsers.hydra-queue-runner = ··· 208 group = "hydra"; 209 useDefaultShell = true; 210 home = "${baseDir}/queue-runner"; # really only to keep SSH happy 211 }; 212 213 users.extraUsers.hydra-www = 214 { description = "Hydra web server"; 215 group = "hydra"; 216 useDefaultShell = true; 217 }; 218 219 nix.trustedUsers = [ "hydra-queue-runner" ];
··· 166 167 buildMachinesFiles = mkOption { 168 type = types.listOf types.path; 169 + default = [ "/etc/nix/machines" ]; 170 example = [ "/etc/nix/machines" "/var/lib/hydra/provisioner/machines" ]; 171 description = "List of files containing build machines."; 172 }; ··· 193 194 config = mkIf cfg.enable { 195 196 + users.extraGroups.hydra = { 197 + gid = config.ids.gids.hydra; 198 + }; 199 200 users.extraUsers.hydra = 201 { description = "Hydra"; ··· 203 createHome = true; 204 home = baseDir; 205 useDefaultShell = true; 206 + uid = config.ids.uids.hydra; 207 }; 208 209 users.extraUsers.hydra-queue-runner = ··· 211 group = "hydra"; 212 useDefaultShell = true; 213 home = "${baseDir}/queue-runner"; # really only to keep SSH happy 214 + uid = config.ids.uids.hydra-queue-runner; 215 }; 216 217 users.extraUsers.hydra-www = 218 { description = "Hydra web server"; 219 group = "hydra"; 220 useDefaultShell = true; 221 + uid = config.ids.uids.hydra-www; 222 }; 223 224 nix.trustedUsers = [ "hydra-queue-runner" ];