nixos-config/config/services/woodpecker-agent.nix

23 lines
555 B
Nix
Raw Normal View History

2023-04-08 08:33:48 +00:00
{
config,
pkgs,
lib,
nix-packages,
system,
...
}: {
imports = [./docker.nix];
services.woodpecker-agents.agents.main = {
enable = true;
environment = {
2023-04-08 18:52:11 +00:00
WOODPECKER_SERVER = "woodpecker.int.chir.rs:9000";
2023-04-08 08:33:48 +00:00
WOODPECKER_BACKEND = "docker";
DOCKER_HOST = "unix:///run/docker.sock";
WOODPECKER_MAX_PROCS = toString config.nix.settings.cores;
2023-04-08 08:33:48 +00:00
};
2023-04-08 08:43:26 +00:00
environmentFile = [config.sops.secrets."services/woodpecker-runner".path];
2023-04-09 07:10:23 +00:00
extraGroups = ["docker"];
2023-04-08 08:33:48 +00:00
};
sops.secrets."services/woodpecker-runner" = {};
}