diff options
-rw-r--r-- | nixos/modules/services/continuous-integration/woodpecker/agents.nix | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/nixos/modules/services/continuous-integration/woodpecker/agents.nix b/nixos/modules/services/continuous-integration/woodpecker/agents.nix index 62719ee934a..4beb74ca5b3 100644 --- a/nixos/modules/services/continuous-integration/woodpecker/agents.nix +++ b/nixos/modules/services/continuous-integration/woodpecker/agents.nix @@ -106,28 +106,30 @@ in agents = lib.mkOption { default = { }; type = lib.types.attrsOf agentModule; - example = { - podman = { - environment = { - WOODPECKER_SERVER = "localhost:9000"; - WOODPECKER_BACKEND = "docker"; - DOCKER_HOST = "unix:///run/podman/podman.sock"; - }; - - extraGroups = [ "podman" ]; + example = lib.literalExpression '' + { + podman = { + environment = { + WOODPECKER_SERVER = "localhost:9000"; + WOODPECKER_BACKEND = "docker"; + DOCKER_HOST = "unix:///run/podman/podman.sock"; + }; - environmentFile = [ "/run/secrets/woodpecker/agent-secret.txt" ]; - }; + extraGroups = [ "podman" ]; - exec = { - environment = { - WOODPECKER_SERVER = "localhost:9000"; - WOODPECKER_BACKEND = "local"; + environmentFile = [ "/run/secrets/woodpecker/agent-secret.txt" ]; }; - environmentFile = [ "/run/secrets/woodpecker/agent-secret.txt" ]; - }; - }; + exec = { + environment = { + WOODPECKER_SERVER = "localhost:9000"; + WOODPECKER_BACKEND = "local"; + }; + + environmentFile = [ "/run/secrets/woodpecker/agent-secret.txt" ]; + }; + } + ''; description = lib.mdDoc "woodpecker-agents configurations"; }; }; |