about summary refs log tree commit diff
path: root/modules/profiles/tests.nix
blob: 66ea76e52280e319f359a6f4cc5880c7255febe0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;
  };
}