diff options
Diffstat (limited to 'ops/nixos')
-rw-r--r-- | ops/nixos/tvl-buildkite.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ops/nixos/tvl-buildkite.nix b/ops/nixos/tvl-buildkite.nix index 48515f6c80c2..4ea92b6eeab0 100644 --- a/ops/nixos/tvl-buildkite.nix +++ b/ops/nixos/tvl-buildkite.nix @@ -32,5 +32,14 @@ in { hooks.post-command = "${buildkiteHooks}/bin/post-command"; }; }) agents); + + # Set up a group for all Buildkite agent users + users = { + groups.buildkite-agents = {}; + users = builtins.listToAttrs (map (n: { + name = "buildkite-agent-whitby-${toString n}"; + value.extraGroups = [ "buildkite-agents" ]; + }) agents); + }; }; } |