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 systemd.services.dnscrypt-proxy2.serviceConfig.SystemCallFilter = [ "@sync" ];
12 services.dnscrypt-proxy2 = {
14 # https://github.com/DNSCrypt/dnscrypt-proxy/blob/master/dnscrypt-proxy/example-dnscrypt-proxy.toml
15 # FIXME: uncomment when updating to 21.05
16 #upstreamDefaults = true;
19 disabled_server_names = [
22 dnscrypt_servers = true;
24 fallback_resolvers = [
29 ignore_system_dns = true;
33 #proxy = "socks5://127.0.0.1:9050";
35 netprobe_timeout = 60;
41 require_dnssec = true;
42 require_nofilter = true;
44 sources.public-resolvers = {
46 "https://raw.githubusercontent.com/DNSCrypt/dnscrypt-resolvers/master/v3/public-resolvers.md"
47 "https://download.dnscrypt.info/resolvers-list/v3/public-resolvers.md"
49 cache_file = "/var/lib/dnscrypt-proxy/public-resolvers.md";
50 minisign_key = "RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3";