about summary refs log tree commit diff
path: root/modules/profiles
diff options
context:
space:
mode:
Diffstat (limited to 'modules/profiles')
-rw-r--r--modules/profiles/tests.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/profiles/tests.nix b/modules/profiles/tests.nix
new file mode 100644
index 00000000..66ea76e5
--- /dev/null
+++ b/modules/profiles/tests.nix
@@ -0,0 +1,15 @@
+{ config, lib, tests, ... }:
+
+with lib;
+
+let
+  which = if config.networking.useNetworkd then "networkd" else "scripted";
+  networkTests = map (attr: getAttr attr tests.nixos.networking.${which}) [
+    "static" "dhcpSimple" "dhcpOneIf" "bond" "bridge" "macvlan" "sit" "vlan"
+  ];
+
+in {
+  config = {
+    vuizvui.requiresTests = networkTests;
+  };
+}