diff options
author | Eric Sagnes <eric.sagnes@gmail.com> | 2016-08-03 11:53:09 +0900 |
---|---|---|
committer | Eric Sagnes <eric.sagnes@gmail.com> | 2016-08-03 13:13:57 +0900 |
commit | 128389b60c801aa5cd7f2ca9e2ef28d9a1784f5e (patch) | |
tree | d26be99a6cd4f632a162cd330250b60017627978 /nixos/modules/services/continuous-integration/hydra/default.nix | |
parent | 450c866730df749ad928f3e70855ef7231c05a71 (diff) | |
download | nixpkgs-128389b60c801aa5cd7f2ca9e2ef28d9a1784f5e.tar nixpkgs-128389b60c801aa5cd7f2ca9e2ef28d9a1784f5e.tar.gz nixpkgs-128389b60c801aa5cd7f2ca9e2ef28d9a1784f5e.tar.bz2 nixpkgs-128389b60c801aa5cd7f2ca9e2ef28d9a1784f5e.tar.lz nixpkgs-128389b60c801aa5cd7f2ca9e2ef28d9a1784f5e.tar.xz nixpkgs-128389b60c801aa5cd7f2ca9e2ef28d9a1784f5e.tar.zst nixpkgs-128389b60c801aa5cd7f2ca9e2ef28d9a1784f5e.zip |
hydra-module: honor user and group ids
Diffstat (limited to 'nixos/modules/services/continuous-integration/hydra/default.nix')
-rw-r--r-- | nixos/modules/services/continuous-integration/hydra/default.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/nixos/modules/services/continuous-integration/hydra/default.nix b/nixos/modules/services/continuous-integration/hydra/default.nix index c8edfaf1853..3eed9ba8982 100644 --- a/nixos/modules/services/continuous-integration/hydra/default.nix +++ b/nixos/modules/services/continuous-integration/hydra/default.nix @@ -193,7 +193,9 @@ in config = mkIf cfg.enable { - users.extraGroups.hydra = { }; + users.extraGroups.hydra = { + gid = config.ids.gids.hydra; + }; users.extraUsers.hydra = { description = "Hydra"; @@ -201,6 +203,7 @@ in createHome = true; home = baseDir; useDefaultShell = true; + uid = config.ids.uids.hydra; }; users.extraUsers.hydra-queue-runner = @@ -208,12 +211,14 @@ in group = "hydra"; useDefaultShell = true; home = "${baseDir}/queue-runner"; # really only to keep SSH happy + uid = config.ids.uids.hydra-queue-runner; }; users.extraUsers.hydra-www = { description = "Hydra web server"; group = "hydra"; useDefaultShell = true; + uid = config.ids.uids.hydra-www; }; nix.trustedUsers = [ "hydra-queue-runner" ]; |