github-runner: fix the nodeRuntimes option

The conditional override was intended to be backwards-compatible with older runner packages without the `nodeRuntimes` argument.
However, `override` doesn't yield default arguments, so the override was never applied.

This commit removes the conditional entirely since `nodeRuntimes` was added back in 24.05.
This commit is contained in:
Sander 2025-08-28 12:51:30 +02:00
parent 8df64f8196
commit f910ac37b6
No known key found for this signature in database

View file

@ -76,7 +76,7 @@ in
config.launchd.daemons = flip mapAttrs' config.services.github-runners (name: cfg:
let
package = cfg.package.override (old: optionalAttrs (hasAttr "nodeRuntimes" old) { inherit (cfg) nodeRuntimes; });
package = cfg.package.override { inherit (cfg) nodeRuntimes; };
stateDir = mkStateDir cfg;
logDir = mkLogDir cfg;
workDir = mkWorkDir cfg;