Last active
October 17, 2022 21:59
-
-
Save dysinger/40e2b940b964bbaea745b0aca1a4979c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
# ... # | |
# https://nixos.org/manual/nixos/unstable/options.html#opt-services.avahi.enable | |
services.avahi.enable = lib.mkForce false; # USE SYSTEMD-RESOLVED | |
services.resolved = { | |
# https://nixos.org/manual/nixos/unstable/options.html#opt-services.resolved.enable | |
enable = true; | |
# https://nixos.org/manual/nixos/unstable/options.html#opt-services.resolved.dnssec | |
dnssec = "allow-downgrade"; | |
# https://nixos.org/manual/nixos/unstable/options.html#opt-services.resolved.llmnr | |
llmnr = "resolve"; | |
# https://nixos.org/manual/nixos/unstable/options.html#opt-services.resolved.extraConfig | |
extraConfig = '' | |
DNSOverTLS=opportunistic | |
MulticastDNS=yes | |
''; | |
# https://nixos.org/manual/nixos/unstable/options.html#opt-services.resolved.fallbackDns | |
fallbackDns = [ "1.0.0.1" "2606:4700:4700::1001" ]; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment