summary refs log tree commit diff
path: root/nixos/modules/services/continuous-integration
diff options
context:
space:
mode:
authorBruno BELANYI <bruno@belanyi.fr>2023-08-18 13:39:08 +0000
committerBruno BELANYI <bruno@belanyi.fr>2023-08-20 22:26:52 +0200
commit200c3bad4254b41202d8e96959c19e15a20c6434 (patch)
treedcd452bc9d69ec278e58e39d9574b42a96526575 /nixos/modules/services/continuous-integration
parent6dd4c5f73faae32bea4bed2cf8f1a98328387129 (diff)
downloadnixpkgs-200c3bad4254b41202d8e96959c19e15a20c6434.tar
nixpkgs-200c3bad4254b41202d8e96959c19e15a20c6434.tar.gz
nixpkgs-200c3bad4254b41202d8e96959c19e15a20c6434.tar.bz2
nixpkgs-200c3bad4254b41202d8e96959c19e15a20c6434.tar.lz
nixpkgs-200c3bad4254b41202d8e96959c19e15a20c6434.tar.xz
nixpkgs-200c3bad4254b41202d8e96959c19e15a20c6434.tar.zst
nixpkgs-200c3bad4254b41202d8e96959c19e15a20c6434.zip
nixos/woodpecker-agents: add 'path' option
See #249602.
Diffstat (limited to 'nixos/modules/services/continuous-integration')
-rw-r--r--nixos/modules/services/continuous-integration/woodpecker/agents.nix23
1 files changed, 22 insertions, 1 deletions
diff --git a/nixos/modules/services/continuous-integration/woodpecker/agents.nix b/nixos/modules/services/continuous-integration/woodpecker/agents.nix
index 4beb74ca5b3..3b883c72ff0 100644
--- a/nixos/modules/services/continuous-integration/woodpecker/agents.nix
+++ b/nixos/modules/services/continuous-integration/woodpecker/agents.nix
@@ -35,6 +35,16 @@ let
         '';
       };
 
+      path = lib.mkOption {
+        type = lib.types.listOf lib.types.package;
+        default = [ ];
+        example = [ "" ];
+        description = lib.mdDoc ''
+          Additional packages that should be added to the agent's `PATH`.
+          Mostly useful for the `local` backend.
+        '';
+      };
+
       environmentFile = lib.mkOption {
         type = lib.types.listOf lib.types.path;
         default = [ ];
@@ -94,7 +104,7 @@ let
           "-/etc/localtime"
         ];
       };
-      inherit (agentCfg) environment;
+      inherit (agentCfg) environment path;
     };
   };
 in
@@ -127,6 +137,17 @@ in
               };
 
               environmentFile = [ "/run/secrets/woodpecker/agent-secret.txt" ];
+
+              path = [
+                # Needed to clone repos
+                git
+                git-lfs
+                woodpecker-plugin-git
+                # Used by the runner as the default shell
+                bash
+                # Most likely to be used in pipeline definitions
+                coreutils
+              ];
             };
           }
         '';