From 614f9ce2a062ea22141ae9a8bf994e2e8a827edb Mon Sep 17 00:00:00 2001 From: ibizaman Date: Sat, 14 Sep 2024 08:54:58 +0200 Subject: [PATCH] allow to customize forgejo runner host packages --- modules/services/forgejo.nix | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/modules/services/forgejo.nix b/modules/services/forgejo.nix index 52985f2..180b801 100644 --- a/modules/services/forgejo.nix +++ b/modules/services/forgejo.nix @@ -188,6 +188,37 @@ in ''; }; + + hostPackages = lib.mkOption { + type = lib.types.listOf lib.types.package; + default = with pkgs; [ + bash + coreutils + curl + gawk + gitMinimal + gnused + nodejs + wget + ]; + defaultText = lib.literalExpression '' + with pkgs; [ + bash + coreutils + curl + gawk + gitMinimal + gnused + nodejs + wget + ] + ''; + description = '' + List of packages, that are available to actions, when the runner is configured + with a host execution label. + ''; + }; + backup = lib.mkOption { type = contracts.backup; description = '' @@ -494,6 +525,7 @@ in # "ubuntu-18.04:docker://node:16-buster" "native:host" ]; + inherit (cfg) hostPackages; }; };