woodpecker: enable agent

This commit is contained in:
notohh 2023-06-11 07:50:39 -04:00
parent b0d7ba2c70
commit a5e1243832
Signed by: notohh
GPG key ID: BD47506D475EE86D

View file

@ -1,5 +1,6 @@
{config, ...}: {
sops.secrets.woodpecker-server = {};
sops.secrets.woodpecker-agent-secret = {};
services.woodpecker-server = {
enable = true;
environment = {
@ -15,5 +16,14 @@
services.woodpecker-agents.agents.nix = {
enable = true;
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"
];
};
}