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

22 lines
555 B
Nix

{
config,
pkgs,
lib,
nix-packages,
system,
...
}: {
imports = [./docker.nix];
services.woodpecker-agents.agents.main = {
enable = true;
environment = {
WOODPECKER_SERVER = "woodpecker.int.chir.rs:9000";
WOODPECKER_BACKEND = "docker";
DOCKER_HOST = "unix:///run/docker.sock";
WOODPECKER_MAX_PROCS = toString config.nix.settings.cores;
};
environmentFile = [config.sops.secrets."services/woodpecker-runner".path];
extraGroups = ["docker"];
};
sops.secrets."services/woodpecker-runner" = {};
}