dns.nix
1 { config, lib, ... }: let
2 inherit (lib) head splitString map;
3 in {
4 # macOS DNS configuration
5 networking.dns = map head (map (splitString "#") config.dns.servers);
6
7 networking.knownNetworkServices = [
8 "Thunderbolt Bridge"
9 "Wi-Fi"
10 ];
11 }