From 60b8b83376df8d1007137b6920ee09ed8cdcc3ac Mon Sep 17 00:00:00 2001 From: William Carroll Date: Mon, 17 Aug 2020 17:33:56 +0100 Subject: [PATCH] Enable services.buildkite-agents Instead of enabling `buildkite-agent` ad hoc, use NixOS to configure it. --- nixos/socrates/default.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/nixos/socrates/default.nix b/nixos/socrates/default.nix index 389112385..f638b83d6 100644 --- a/nixos/socrates/default.nix +++ b/nixos/socrates/default.nix @@ -50,13 +50,6 @@ 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; @@ -115,6 +108,13 @@ in { rootUrl = "https://git.wpcarro.dev/"; }; + services.buildkite-agents = { + socrates = { + enable = true; + tokenPath = "/etc/secrets/buildkite-agent-token"; + }; + }; + # systemd.services.monzo-token-server = { # enable = true; # description = "Ensure my Monzo access token is valid";