about summary refs log tree commit diff
path: root/nixos/socrates/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/socrates/default.nix')
-rw-r--r--nixos/socrates/default.nix14
1 files changed, 7 insertions, 7 deletions
diff --git a/nixos/socrates/default.nix b/nixos/socrates/default.nix
index 3891123850d5..f638b83d66fb 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";