woodpecker: enable agent
This commit is contained in:
parent
b0d7ba2c70
commit
a5e1243832
1 changed files with 10 additions and 0 deletions
|
@ -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"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue