From e9795891740c741188afed2fa384a8e2e621af3f Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Wed, 13 Sep 2023 12:40:19 +0000 Subject: [PATCH] modules: services: woodpecker: use 'path' option One less thing to modify in the systemd service. --- .../woodpecker/agent-exec/default.nix | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/modules/services/woodpecker/agent-exec/default.nix b/modules/services/woodpecker/agent-exec/default.nix index ad30188..7ae21c8 100644 --- a/modules/services/woodpecker/agent-exec/default.nix +++ b/modules/services/woodpecker/agent-exec/default.nix @@ -21,6 +21,17 @@ in PAGER = "cat"; }; + path = with pkgs; [ + woodpecker-plugin-git + bash + coreutils + git + git-lfs + gnutar + gzip + nix + ]; + environmentFile = [ cfg.sharedSecretFile ]; }; }; @@ -30,17 +41,6 @@ in # Might break deployment restartIfChanged = false; - path = with pkgs; [ - woodpecker-plugin-git - bash - coreutils - git - git-lfs - gnutar - gzip - nix - ]; - serviceConfig = { # Same option as upstream, without @setuid SystemCallFilter = lib.mkForce "~@clock @privileged @cpu-emulation @debug @keyring @module @mount @obsolete @raw-io @reboot @swap";