about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-08-16T18·07+0100
committerWilliam Carroll <wpcarro@gmail.com>2020-08-20T10·26+0100
commit0a0b09c714f9bae0c829e820108943a43549f7e4 (patch)
tree5666e5e9efd5e5c31b4588fb23ad5f09d90b5389 /nixos
parent2bf3c6c9269b36f3078529a2f075645d59ddc56e (diff)
Define buildkite-agent user
I'd like my buildkite-agent to run as its own user, so I'm defining that user
here.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/socrates/configuration.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/nixos/socrates/configuration.nix b/nixos/socrates/configuration.nix
index 469e2f45dccc..58b3c64cfee2 100644
--- a/nixos/socrates/configuration.nix
+++ b/nixos/socrates/configuration.nix
@@ -58,6 +58,13 @@ in {
       shell = pkgs.fish;
     };
 
+    users.buildkite-agent = {
+      # TODO: Consider setting this to `false` when you better understand the
+      # implications.
+      isNormalUser = true;
+      extraGroups = [ "git" ];
+    };
+
     users.git = {
       group = "git";
       isNormalUser = false;