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 = {
firewall = {
allowedTCPPorts = [ 1234 1337 8000 8080 ];
@ -7,6 +7,7 @@
nameservers = [ "159.69.4.2#dns.caspervk.net" ];
networkmanager = {
enable = true;
dns = lib.mkForce "none";
};
};
@ -15,6 +16,7 @@
dnssec = "true";
fallbackDns = [ "159.69.4.2#dns.caspervk.net" ];
extraConfig = ''
DNS=159.69.4.2#dns.caspervk.net
DNSOverTLS=yes
'';
};