about summary refs log tree commit diff
path: root/modules/profiles/tests.nix
blob: 811d6cf8b34c14ddeb84f3df8d3e8a34475cb76a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ config, lib, ... }:

with lib;

let
  which = if config.networking.useNetworkd then "networkd" else "scripted";
  networkTests = map (name: ["nixos" "networking" which]) [
    "static" "dhcpSimple" "dhcpOneIf" "bond" "bridge" "macvlan" "sit" "vlan"
  ];

in {
  config = {
    vuizvui.requiresTests = networkTests;
  };
}