git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #17469 from ericsagnes/module/hydra

Improvements to Hydra module

commitacaa6a4c2b0ef4d73f5e4b38302f310072e4c9b1 authorDomen Kožar <domen@dev.si> dateSat 20 Aug 2016, 19:50 (10 years ago) parent2e9a3c3338c425
1 file changed+7−2
nixos/modules/services/continuous-integration/hydra/default.nix+7−2
nixos/modules/services/continuous-integration/hydra/default.nix+7−2
@@ -166,7 +166,7 @@ in
166166
167167 buildMachinesFiles = mkOption {
168168 type = types.listOf types.path;
169− default = [];
169+ default = [ "/etc/nix/machines" ];
170170 example = [ "/etc/nix/machines" "/var/lib/hydra/provisioner/machines" ];
171171 description = "List of files containing build machines.";
172172 };
@@ -193,7 +193,9 @@ in
193193
194194 config = mkIf cfg.enable {
195195
196− users.extraGroups.hydra = { };
196+ users.extraGroups.hydra = {
197+ gid = config.ids.gids.hydra;
198+ };
197199
198200 users.extraUsers.hydra =
199201 { description = "Hydra";
@@ -201,6 +203,7 @@ in
201203 createHome = true;
202204 home = baseDir;
203205 useDefaultShell = true;
206+ uid = config.ids.uids.hydra;
204207 };
205208
206209 users.extraUsers.hydra-queue-runner =
@@ -208,12 +211,14 @@ in
208211 group = "hydra";
209212 useDefaultShell = true;
210213 home = "${baseDir}/queue-runner"; # really only to keep SSH happy
214+ uid = config.ids.uids.hydra-queue-runner;
211215 };
212216
213217 users.extraUsers.hydra-www =
214218 { description = "Hydra web server";
215219 group = "hydra";
216220 useDefaultShell = true;
221+ uid = config.ids.uids.hydra-www;
217222 };
218223
219224 nix.trustedUsers = [ "hydra-queue-runner" ];