summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--hosts/navi/default.nix13
-rw-r--r--profiles/network.nix1
2 files changed, 8 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
diff --git a/profiles/network.nix b/profiles/network.nix
index fc4af5c..04f8dc0 100644
--- a/profiles/network.nix
+++ b/profiles/network.nix
@@ -24,6 +24,7 @@
         100.67.217.90 vps
       '';
     };
+    services.resolved.extraConfig = "FallbackDNS=";
 
     # Don't wait for network startup
     # https://old.reddit.com/r/NixOS/comments/vdz86j/how_to_remove_boot_dependency_on_network_for_a