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";
|
2023-04-10 13:16:33 +00:00
|
|
|
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" = {};
|
|
|
|
}
|