2021-07-07 10:20:28 +02:00
|
|
|
{
|
|
|
|
networking = {
|
|
|
|
nameservers = [ "127.0.0.1" "::1" ];
|
|
|
|
resolvconf.useLocalResolver = true;
|
|
|
|
# If using NetworkManager:
|
2022-09-13 17:37:16 +02:00
|
|
|
# networkmanager.dns = "none";
|
2021-07-07 10:20:28 +02:00
|
|
|
};
|
2021-07-07 12:47:59 +02:00
|
|
|
services.dnscrypt-proxy2 = {
|
2021-07-07 10:20:28 +02:00
|
|
|
enable = true;
|
|
|
|
settings = {
|
2022-09-09 17:44:17 +02:00
|
|
|
ipv6_servers = true;
|
2021-07-07 10:20:28 +02:00
|
|
|
require_dnssec = true;
|
2021-07-22 22:06:16 +02:00
|
|
|
cloaking_rules = ./cloaking_rules;
|
2021-07-07 10:20:28 +02:00
|
|
|
|
|
|
|
sources.public-resolvers = {
|
|
|
|
urls = [
|
|
|
|
"https://raw.githubusercontent.com/DNSCrypt/dnscrypt-resolvers/master/v3/public-resolvers.md"
|
|
|
|
"https://download.dnscrypt.info/resolvers-list/v3/public-resolvers.md"
|
|
|
|
];
|
2022-09-13 17:37:16 +02:00
|
|
|
cache_file = "/var/lib/dnscrypt-proxy/public-resolvers.md";
|
2021-07-07 10:20:28 +02:00
|
|
|
minisign_key = "RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2022-06-14 16:23:49 +02:00
|
|
|
programs.captive-browser = {
|
|
|
|
enable = true;
|
|
|
|
bindInterface = false;
|
|
|
|
};
|
2021-07-07 10:20:28 +02:00
|
|
|
}
|