nixos/lib/testing: Delay nodes.machine.~config~ migration
Provide a window during which both solutions are valid without warnings, in order to fight warning fatigue, and not to push 3rd party repo maintainers to add unnecessary compat code.
This commit is contained in:
parent
611f247810
commit
1d9b913088
@ -101,7 +101,7 @@ in
|
||||
nodesCompat =
|
||||
mapAttrs
|
||||
(name: config: config // {
|
||||
config = lib.warn
|
||||
config = lib.warnIf (lib.isInOldestRelease 2211)
|
||||
"Module argument `nodes.${name}.config` is deprecated. Use `nodes.${name}` instead."
|
||||
config;
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user