Set runner name to attr name for github-runners.${name}

This commit is contained in:
Tom McLaughlin
2022-10-14 05:31:50 -06:00
parent fc8fdb03a0
commit 2c099d1a14
3 changed files with 13 additions and 7 deletions

View File

@@ -1,4 +1,9 @@
{ config, lib, pkgs, ... }:
{ config
, lib
, pkgs
, includeNameDefault
, ...
}:
with lib;
@@ -59,6 +64,7 @@ with lib;
Changing this option triggers a new runner registration.
'';
example = "nixos";
} // lib.optionalAttrs includeNameDefault {
default = config.networking.hostName;
defaultText = literalExpression "config.networking.hostName";
};