Skip to content

Commit

Permalink
Temporary commit for CI testing
Browse files Browse the repository at this point in the history
  • Loading branch information
tjni committed Sep 12, 2024
1 parent 16b18f1 commit 04a1cba
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions tests/networking-networkservices.nix
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
{ 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" ];
};

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
Expand Down

0 comments on commit 04a1cba

Please sign in to comment.