From a5e124383293c04bd4a897055a198d4cae9dacfd Mon Sep 17 00:00:00 2001 From: notohh Date: Sun, 11 Jun 2023 07:50:39 -0400 Subject: [PATCH] woodpecker: enable agent --- hosts/sakura/services/woodpecker.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hosts/sakura/services/woodpecker.nix b/hosts/sakura/services/woodpecker.nix index e40094a..b4ea642 100644 --- a/hosts/sakura/services/woodpecker.nix +++ b/hosts/sakura/services/woodpecker.nix @@ -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" + ]; }; }