From 46588a6d7e1c6edb69075fd03b36576c4a512d0e Mon Sep 17 00:00:00 2001 From: "Casper V. Kristensen" Date: Thu, 10 Aug 2023 01:13:23 +0200 Subject: [PATCH] Don't use DNS from DHCP --- modules/base/network.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/base/network.nix b/modules/base/network.nix index 290d40c..cae0c8c 100644 --- a/modules/base/network.nix +++ b/modules/base/network.nix @@ -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 ''; };