1
0
Fork 0

allow to customize forgejo runner host packages (#304)

This commit is contained in:
Pierre Penninckx 2024-09-13 23:56:05 -07:00 committed by GitHub
parent f8edf51207
commit 7ad3e4c5a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 { backup = lib.mkOption {
type = contracts.backup; type = contracts.backup;
description = '' description = ''
@ -494,6 +525,7 @@ in
# "ubuntu-18.04:docker://node:16-buster" # "ubuntu-18.04:docker://node:16-buster"
"native:host" "native:host"
]; ];
inherit (cfg) hostPackages;
}; };
}; };