about summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2018-02-26 09:42:11 +0100
committeraszlig <aszlig@nix.build>2018-02-26 09:42:11 +0100
commit01ef7177aeba08ccdcd98c5f8d7afada26e86630 (patch)
tree390d8bac19360f47d63b7a4a6e5e6b7349e5f573 /modules
parent4f5d957c7888e85a654c6af8cf95fdf05c72d737 (diff)
core/tests: Fix use of networking.interfaces.*.ip4
Since NixOS/nixpkgs@c1bed05e341756f7fdfa73035c7f1e078e49be3d it is now
called ipv4.addresses.

The reason why the evaluation on our behalf has failed despite the
option being aliased is that we try to access the option while checking
for eligible tests for a particular machine.

Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'modules')
-rw-r--r--modules/core/tests.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/core/tests.nix b/modules/core/tests.nix
index 2786a60a..f5093f0d 100644
--- a/modules/core/tests.nix
+++ b/modules/core/tests.nix
@@ -338,7 +338,8 @@ let
     { check = config.networking.sits != {};
       path  = ["nixos" "networking" whichNet "sit"];
     }
-    { check = anyAttrs (i: i.ip4 != []) config.networking.interfaces;
+    { check = anyAttrs (i: i.ipv4.addresses != [])
+              config.networking.interfaces;
       path  = ["nixos" "networking" whichNet "static"];
     }
     { check = config.networking.vlans != {};