devos/profiles/network/stubby/default.nix
Timothy DeHerrera c67b846929
profiles: add concept of suites
* Import attrs of profiles automatically with `defaultImport`.
* Refactor profiles to ensure all are functions returning a module.
* Add a suites.nix with collections of profiles.
* Add suites as `specialArgs` to modules.
* Add suite import to NixOS host.
2021-02-03 13:16:14 -07:00

28 lines
540 B
Nix

{ ... }: {
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;
};
}