1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-27 10:07:44 +00:00
ncc/modules/darwin/dns.nix

14 lines
323 B
Nix
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ config, lib, ... }: let
inherit (lib) head splitString;
in {
# Yeah, no DNSSEC or DoT or anything.
# That's what you get for using Darwin I guess.
networking.dns = config.dns.servers
|> map (splitString "#")
|> map head;
networking.knownNetworkServices = [
"Thunderbolt Bridge"
"Wi-Fi"
];
}