From c30f0f5e3862d616042b659017ad51db97d9d5be Mon Sep 17 00:00:00 2001 From: Anish Lakhwara Date: Tue, 27 Dec 2022 14:24:38 +1000 Subject: [PATCH] woodpecker works, but only with docker... --- hosts/profiles/woodpecker-agent/default.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/hosts/profiles/woodpecker-agent/default.nix b/hosts/profiles/woodpecker-agent/default.nix index e316a7dc..d3bbaefb 100644 --- a/hosts/profiles/woodpecker-agent/default.nix +++ b/hosts/profiles/woodpecker-agent/default.nix @@ -10,6 +10,7 @@ users.groups.woodpecker-runner = { }; # Allow the exec runner to write to build with nix nix.settings.allowed-users = [ "woodpecker-runner" ]; + virtualisation.docker.enable = true; age.secrets.woodpecker-agent-secret.owner = "woodpecker-runner"; age.secrets.woodpecker-agent-secret.file = "${self}/secrets/woodpecker-agent-secret.age"; @@ -37,12 +38,13 @@ Type = "simple"; Environment = [ "WOODPECKER_RUNNER_CAPACITY=6" - # "WOODPECKER_RUNNER_NAME=woodpecker-agent" - "WOODPECKER_SERVER=https://ci.sealight.xyz/" - # "WOODPECKER_HOSTNAME=mossnet" - # "WOODPECKER_BACKEND=local" - # "NIX_REMOTE=daemon" - # "PAGER=cat" + "WOODPECKER_RUNNER_NAME=woodpecker-agent" + "WOODPECKER_SERVER=ci.sealight.xyz:9000" + "WOODPECKER_HOSTNAME=mossnet" + "WOODPECKER_BACKEND=docker" + "NIX_REMOTE=daemon" + "PAGER=cat" + # "WOODPECKER_PROTO=https" # "WOODPECKER_LOG_LEVEL=debug" ]; WorkingDirectory = "/var/lib/woodpecker";