summary refs log tree commit diff
path: root/nixos/lib/testing
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2022-10-16 16:19:29 +0200
committerRobert Hensing <robert@roberthensing.nl>2022-10-16 16:30:21 +0200
commit1d9b9130883550f2f928c573b35fe8b8193d5c4b (patch)
tree3ca26073744e790ecb493602a6367104b847aa96 /nixos/lib/testing
parent611f247810ab76bedd6ed544068232982c071f06 (diff)
downloadnixpkgs-1d9b9130883550f2f928c573b35fe8b8193d5c4b.tar
nixpkgs-1d9b9130883550f2f928c573b35fe8b8193d5c4b.tar.gz
nixpkgs-1d9b9130883550f2f928c573b35fe8b8193d5c4b.tar.bz2
nixpkgs-1d9b9130883550f2f928c573b35fe8b8193d5c4b.tar.lz
nixpkgs-1d9b9130883550f2f928c573b35fe8b8193d5c4b.tar.xz
nixpkgs-1d9b9130883550f2f928c573b35fe8b8193d5c4b.tar.zst
nixpkgs-1d9b9130883550f2f928c573b35fe8b8193d5c4b.zip
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.
Diffstat (limited to 'nixos/lib/testing')
-rw-r--r--nixos/lib/testing/nodes.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/lib/testing/nodes.nix b/nixos/lib/testing/nodes.nix
index 0395238cbaa..8e620c96b3b 100644
--- a/nixos/lib/testing/nodes.nix
+++ b/nixos/lib/testing/nodes.nix
@@ -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;
         })