about summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/core/tests.nix11
1 files changed, 7 insertions, 4 deletions
diff --git a/modules/core/tests.nix b/modules/core/tests.nix
index 2e8b8c06..85a4340e 100644
--- a/modules/core/tests.nix
+++ b/modules/core/tests.nix
@@ -37,18 +37,21 @@ let
     { check = anyAttrs (i: i.hostBridge != null) config.containers;
       path  = ["nixos" "containers-bridge"];
     }
-    { check = config.networking.hostName != "brawndo"; # FIXME
+    { check = config.boot.enableContainers;
       path  = ["nixos" "containers-imperative"];
     }
-    { check = anyAttrs (i: i.hostAddress  != null
+    { check = config.boot.enableContainers
+           && anyAttrs (i: i.hostAddress  != null
                         || i.localAddress != null) config.containers;
       path  = ["nixos" "containers-ipv4"];
     }
-    { check = anyAttrs (i: i.hostAddress6  != null
+    { check = config.boot.enableContainers
+           && anyAttrs (i: i.hostAddress6  != null
                         || i.localAddress6 != null) config.containers;
       path  = ["nixos" "containers-ipv6"];
     }
-    { check = anyAttrs (i: i.extraVeths != {}) config.containers;
+    { check = config.boot.enableContainers
+           && anyAttrs (i: i.extraVeths != {}) config.containers;
       path  = ["nixos" "containers-extra_veth"];
     }
     { check = config.services.dnscrypt-proxy.enable;