From 0a0b09c714f9bae0c829e820108943a43549f7e4 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Sun, 16 Aug 2020 19:07:43 +0100 Subject: [PATCH] Define buildkite-agent user I'd like my buildkite-agent to run as its own user, so I'm defining that user here. --- nixos/socrates/configuration.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nixos/socrates/configuration.nix b/nixos/socrates/configuration.nix index 469e2f45d..58b3c64cf 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;