Enable services.buildkite-agents

Instead of enabling `buildkite-agent` ad hoc, use NixOS to configure it.
This commit is contained in:
William Carroll 2020-08-17 17:33:56 +01:00
parent 890d4606cf
commit 60b8b83376

View file

@ -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";