Add comments to explain about the name defaults

This commit is contained in:
Tom McLaughlin
2022-10-17 00:04:52 -07:00
parent 2c099d1a14
commit 5221e7af04
2 changed files with 9 additions and 2 deletions

View File

@@ -14,7 +14,10 @@ in
{
options.services.github-runners = mkOption {
default = {};
type = with types; attrsOf (submodule { options = import ./github-runner/options.nix (args // { includeNameDefault = false; }); });
type = with types; attrsOf (submodule { options = import ./github-runner/options.nix (args // {
# services.github-runners.${name}.name doesn't have a default; instead it is set to ${name} below.
includeNameDefault = false;
}); });
example = {
runner1 = {
enable = true;