2023-06-11 05:10:20 -04:00
|
|
|
{config, ...}: {
|
|
|
|
sops.secrets.woodpecker-server = {};
|
2023-06-11 07:50:39 -04:00
|
|
|
sops.secrets.woodpecker-agent-secret = {};
|
2023-06-11 05:10:20 -04:00
|
|
|
services.woodpecker-server = {
|
|
|
|
enable = true;
|
|
|
|
environment = {
|
|
|
|
WOODPECKER_SERVER_ADDR = ":8006";
|
|
|
|
WOODPECKER_HOST = "https://ci.notohh.dev";
|
|
|
|
WOODPECKER_OPEN = "false";
|
|
|
|
WOODPECKER_GITEA = "true";
|
|
|
|
WOODPECKER_GITEA_URL = "https://git.notohh.dev";
|
|
|
|
WOODPECKER_ADMIN = "notohh";
|
|
|
|
};
|
|
|
|
environmentFile = config.sops.secrets.woodpecker-server.path;
|
|
|
|
};
|
|
|
|
|
|
|
|
services.woodpecker-agents.agents.nix = {
|
|
|
|
enable = true;
|
2023-06-11 07:50:39 -04:00
|
|
|
environment = {
|
|
|
|
DOCKER_HOST = "unix:///var/run/docker.sock";
|
|
|
|
WOODPECKER_BACKEND = "docker";
|
|
|
|
WOODPECKER_SERVER = "localhost:8006";
|
|
|
|
WOODPECKER_AGENT_SECRET = config.sops.secrets.woodpecker-agent-secret.path;
|
|
|
|
};
|
|
|
|
extraGroups = [
|
|
|
|
"docker"
|
|
|
|
];
|
2023-06-11 05:10:20 -04:00
|
|
|
};
|
|
|
|
}
|