diff options
-rw-r--r-- | modules/module-list.nix | 1 | ||||
-rw-r--r-- | modules/profiles/tests.nix | 15 |
2 files changed, 16 insertions, 0 deletions
diff --git a/modules/module-list.nix b/modules/module-list.nix index 08d14af5..f45e2451 100644 --- a/modules/module-list.nix +++ b/modules/module-list.nix @@ -1,5 +1,6 @@ [ ./profiles/common.nix + ./profiles/tests.nix ./services/multipath-vpn.nix ./services/postfix ./system/iso.nix 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; + }; +} |