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:
Robert Hensing 2022-10-16 16:19:29 +02:00
parent 611f247810
commit 1d9b913088

View File

@ -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;
})