From 680316541c33d5dbcad7c59dba5586ecf3407c68 Mon Sep 17 00:00:00 2001 From: Rory& Date: Tue, 10 Sep 2024 03:02:41 +0200 Subject: Override resolv.conf properly --- host/Rory-nginx/configuration.nix | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'host/Rory-nginx/configuration.nix') diff --git a/host/Rory-nginx/configuration.nix b/host/Rory-nginx/configuration.nix index 539c96e..c875678 100755 --- a/host/Rory-nginx/configuration.nix +++ b/host/Rory-nginx/configuration.nix @@ -51,15 +51,14 @@ enableIPv6 = false; }; enableIPv6 = lib.mkForce false; - nameservers = lib.mkOverride [ - "192.168.1.1" - ]; + nameservers = lib.mkOverride [ "192.168.1.1" ]; + }; + + environment.etc."resolv.conf" = lib.mkOverride { + text = '' + nameserver 192.168.1.1 + ''; }; - - - environment.etc."resolv.conf".text = lib.mkOverride '' - nameserver 192.168.1.1 - ''; monitoring = { monitorAll = true; @@ -100,6 +99,5 @@ system.stateVersion = "22.11"; # DO NOT EDIT! - environment.systemPackages = with pkgs; [ waypipe ]; } -- cgit 1.4.1