Skip to content

Instantly share code, notes, and snippets.

@dysinger
Last active October 17, 2022 21:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dysinger/40e2b940b964bbaea745b0aca1a4979c to your computer and use it in GitHub Desktop.
Save dysinger/40e2b940b964bbaea745b0aca1a4979c to your computer and use it in GitHub Desktop.
{
# ... #
# 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