1 { config, pkgs, lib, ... }:
4 networkmanager.dns = "none";
5 nameservers = [ "127.0.0.1" "::1" ];
6 #resolvconf.enable = lib.mkForce false;
7 resolvconf.useLocalResolver = true;
8 dhcpcd.extraConfig = "nohook resolv.conf";
10 systemd.services.dnscrypt-proxy2.serviceConfig.StandardOuput = "journal";
11 services.dnscrypt-proxy2 = {
13 # https://github.com/DNSCrypt/dnscrypt-proxy/blob/master/dnscrypt-proxy/example-dnscrypt-proxy.toml
14 # FIXME: uncomment when updating to 21.05
15 #upstreamDefaults = true;
18 disabled_server_names = [
21 dnscrypt_servers = true;
23 fallback_resolvers = [
28 ignore_system_dns = true;
32 #proxy = "socks5://127.0.0.1:9050";
34 netprobe_timeout = 60;
40 require_dnssec = true;
41 require_nofilter = true;
43 sources.public-resolvers = {
45 "https://raw.githubusercontent.com/DNSCrypt/dnscrypt-resolvers/master/v3/public-resolvers.md"
46 "https://download.dnscrypt.info/resolvers-list/v3/public-resolvers.md"
48 cache_file = "/var/lib/dnscrypt-proxy/public-resolvers.md";
49 minisign_key = "RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3";