diff --git a/nix/module.nix b/nix/module.nix index 5ffcc52..79ae5c5 100644 --- a/nix/module.nix +++ b/nix/module.nix @@ -65,11 +65,12 @@ let # Runner configuration common = { - inherit extraLabels extraPackages; + inherit extraLabels; enable = true; replace = true; ephemeral = true; noDefaultLabels = true; + extraPackages = extraPackages ++ config.services.github-nix-ci.runnerSettings.extraPackages; } // lib.optionalAttrs isLinux { inherit user group; }; user = "github-runner"; group = "github-runner"; @@ -91,6 +92,16 @@ in ''; }; + runnerSettings = { + extraPackages = lib.mkOption { + type = types.listOf types.package; + default = [ ]; + description = '' + Extra packages to be installed on all runners + ''; + }; + }; + orgRunners = lib.mkOption { type = types.attrsOf (types.submodule ({ config, name, ... }: { options = {