diff --git a/tests/networking-networkservices.nix b/tests/networking-networkservices.nix index 1a002769a..d0e9c3464 100644 --- a/tests/networking-networkservices.nix +++ b/tests/networking-networkservices.nix @@ -1,8 +1,14 @@ { config, ... }: { - networking.knownNetworkServices = [ "Wi-Fi" "Thunderbolt Ethernet" ]; - networking.dns = [ "8.8.8.8" "8.8.4.4" ]; + networking.knownNetworkServices = [ + "Wi-Fi" + "Thunderbolt Ethernet" + ]; + networking.dns = [ + "8.8.8.8" + "8.8.4.4" + ]; networking.location."Home Lab" = { search = [ "home.lab" ]; }; @@ -10,6 +16,8 @@ test = '' echo checking dns settings in /activate >&2 + cat ${config.out}/activate >&2 + echo "---TESTING--------" >&2 grep "networksetup -switchtolocation 'Automatic'" ${config.out}/activate grep "networksetup -setdnsservers 'Wi-Fi' '8.8.8.8' '8.8.4.4'" ${config.out}/activate grep "networksetup -setdnsservers 'Thunderbolt Ethernet' '8.8.8.8' '8.8.4.4'" ${config.out}/activate