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 = {
|
|
|
|
WOODPECKER_SERVER = "https://woodpecker.int.chir.rs/";
|
|
|
|
WOODPECKER_BACKEND = "docker";
|
|
|
|
DOCKER_HOST = "unix:///run/docker.sock";
|
|
|
|
};
|
2023-04-08 08:43:26 +00:00
|
|
|
environmentFile = [config.sops.secrets."services/woodpecker-runner".path];
|
2023-04-08 08:33:48 +00:00
|
|
|
};
|
|
|
|
sops.secrets."services/woodpecker-runner" = {};
|
|
|
|
}
|