Skip to content

Commit

Permalink
allow to customize forgejo runner host packages (#304)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibizaman authored Sep 14, 2024
1 parent f8edf51 commit 7ad3e4c
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions modules/services/forgejo.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ''
Expand Down Expand Up @@ -494,6 +525,7 @@ in
# "ubuntu-18.04:docker://node:16-buster"
"native:host"
];
inherit (cfg) hostPackages;
};
};

Expand Down

0 comments on commit 7ad3e4c

Please sign in to comment.