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 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";