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