mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 20:39:18 -08:00
21 lines
408 B
Nix
21 lines
408 B
Nix
{lib, ...}: let
|
|
inherit (lib.modules) mkForce;
|
|
in {
|
|
networking = {
|
|
networkmanager.dns = mkForce "none";
|
|
nameservers = [
|
|
"172.20.0.1"
|
|
/*"1.1.1.1#cloudflare-dns.com"
|
|
"1.0.0.1#cloudflare-dns.com"
|
|
"8.8.8.8#dns.google"*/
|
|
];
|
|
};
|
|
services.resolved = {
|
|
enable = true;
|
|
domains = ["~."];
|
|
dnssec = "false";
|
|
extraConfig = ''
|
|
DNSOverTLS=yes
|
|
'';
|
|
};
|
|
}
|