From 7ad3e4c5a422435c5c987c0257b8e4e1b60b0546 Mon Sep 17 00:00:00 2001 From: Pierre Penninckx Date: Fri, 13 Sep 2024 23:56:05 -0700 Subject: [PATCH] allow to customize forgejo runner host packages (#304) --- modules/services/forgejo.nix | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/modules/services/forgejo.nix b/modules/services/forgejo.nix index 52985f2a..180b8014 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; }; };