summary refs log tree commit diff
path: root/hosts
diff options
context:
space:
mode:
authortzlil <tzlils@protonmail.com>2023-08-04 02:36:08 +0300
committertzlil <tzlils@protonmail.com>2023-08-04 02:36:08 +0300
commit9dfa1c5941ce612d726a1d7dfc7fe169a9cac7df (patch)
treec3b96ec1bdd183d42e66d3bf34cba701b24216ff /hosts
parent6a229b7c89a7dac946d340c1fa705eca89eaef4c (diff)
fix dns leaking
Diffstat (limited to 'hosts')
-rw-r--r--hosts/navi/default.nix13
1 files changed, 7 insertions, 6 deletions
diff --git a/hosts/navi/default.nix b/hosts/navi/default.nix
index 7def17a..12bf69f 100644
--- a/hosts/navi/default.nix
+++ b/hosts/navi/default.nix
@@ -47,15 +47,16 @@
       algorithm = "zstd";
     };
 
-    # networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true;
-    # systemd.network.networks."10-wlp1s0" = {
-    #   matchConfig.Name = "wlp1s0";
-    #   networkConfig.DHCP = "yes";
-    # };
-
     systemd.network.networks."10-wlp1s0" = {
       matchConfig.Name = "wlp1s0";
       networkConfig.DHCP = "yes";
+      dns = [ "127.0.0.1" "::1" ];
+      dhcpV4Config = {
+        UseDNS = false;
+      };
+      ipv6AcceptRAConfig = {
+        UseDNS = false;
+      };
     };
 
     # # iwd networking stuffs