flake/nixos/networking/dns/systemd-resolved.nix
2023-10-15 08:51:56 +08:00

12 lines
No EOL
329 B
Nix

{ ... }:
{
networking.networkmanager.dns = "systemd-resolved";
services.resolved = {
enable = true;
dnssec = "true";
domains = [ "~." ];
fallbackDns = [ "8.8.8.8#dns.google" "8.8.4.4#dns.google" "2001:4860:4860::8888#dns.google" "2001:4860:4860::8844#dns.google" ];
extraConfig = "DNSOverTLS=yes";
};
}