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
16 disabled_server_names = [
19 dnscrypt_servers = true;
21 fallback_resolvers = [
26 ignore_system_dns = true;
30 #proxy = "socks5://127.0.0.1:9050";
32 netprobe_timeout = 60;
38 require_dnssec = true;
39 require_nofilter = true;
41 sources.public-resolvers = {
43 "https://raw.githubusercontent.com/DNSCrypt/dnscrypt-resolvers/master/v3/public-resolvers.md"
44 "https://download.dnscrypt.info/resolvers-list/v3/public-resolvers.md"
46 cache_file = "/var/lib/dnscrypt-proxy/public-resolvers.md";
47 minisign_key = "RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3";