misc#stubby: init

This commit is contained in:
Timothy DeHerrera 2019-12-16 02:34:29 -07:00
parent f3f31938f6
commit 57abccc95c
No known key found for this signature in database
GPG key ID: 8985725DB5B0C122
2 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,6 @@
{ ... }:
{
imports = [
./stubby.nix
];
}

30
profiles/misc/stubby.nix Normal file
View file

@ -0,0 +1,30 @@
{ ... }:
{
services.stubby = {
enable = true;
upstreamServers = ''
- address_data: 1.1.1.1
tls_port: 853
tls_auth_name: "cloudflare-dns.com"
- address_data: 1.0.0.1
tls_port: 853
tls_auth_name: "cloudflare-dns.com"
'';
};
environment.etc = {
"resolv.conf" = {
text = ''
options edns0
nameserver 127.0.0.1
'';
mode = "444";
};
};
networking = {
networkmanager.dns = "none";
resolvconf.dnsExtensionMechanism = false;
};
}