2024-10-21 22:34:25 +00:00
|
|
|
{ config, lib, ... }:
|
2018-01-07 23:25:26 +00:00
|
|
|
|
|
|
|
{
|
2018-01-13 01:12:39 +00:00
|
|
|
networking.knownNetworkServices = [ "Wi-Fi" "Thunderbolt Ethernet" ];
|
2018-01-07 23:25:26 +00:00
|
|
|
networking.dns = [ "8.8.8.8" "8.8.4.4" ];
|
|
|
|
|
|
|
|
test = ''
|
|
|
|
echo checking dns settings in /activate >&2
|
2024-10-21 22:34:25 +00:00
|
|
|
grep "networksetup -setdnsservers ${lib.escapeShellArgs [ "Wi-Fi" "8.8.8.8" "8.8.4.4" ]}" ${config.out}/activate
|
|
|
|
grep "networksetup -setdnsservers ${lib.escapeShellArgs [ "Thunderbolt Ethernet" "8.8.8.8" "8.8.4.4" ]}" ${config.out}/activate
|
2018-01-07 23:25:26 +00:00
|
|
|
echo checking empty searchdomain settings in /activate >&2
|
2024-10-21 22:34:25 +00:00
|
|
|
grep "networksetup -setsearchdomains ${lib.escapeShellArgs [ "Wi-Fi" "empty" ]}" ${config.out}/activate
|
|
|
|
grep "networksetup -setsearchdomains ${lib.escapeShellArgs [ "Thunderbolt Ethernet" "empty" ]}" ${config.out}/activate
|
2018-01-07 23:25:26 +00:00
|
|
|
'';
|
|
|
|
}
|