Don't use DNS from DHCP

This commit is contained in:
Casper V. Kristensen 2023-08-10 01:13:23 +02:00
parent a61dc3d12a
commit 46588a6d7e

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: { { lib, pkgs, ... }: {
networking = { networking = {
firewall = { firewall = {
allowedTCPPorts = [ 1234 1337 8000 8080 ]; allowedTCPPorts = [ 1234 1337 8000 8080 ];
@ -7,6 +7,7 @@
nameservers = [ "159.69.4.2#dns.caspervk.net" ]; nameservers = [ "159.69.4.2#dns.caspervk.net" ];
networkmanager = { networkmanager = {
enable = true; enable = true;
dns = lib.mkForce "none";
}; };
}; };
@ -15,6 +16,7 @@
dnssec = "true"; dnssec = "true";
fallbackDns = [ "159.69.4.2#dns.caspervk.net" ]; fallbackDns = [ "159.69.4.2#dns.caspervk.net" ];
extraConfig = '' extraConfig = ''
DNS=159.69.4.2#dns.caspervk.net
DNSOverTLS=yes DNSOverTLS=yes
''; '';
}; };