summary refs log tree commit diff
diff options
context:
space:
mode:
authortzlil <tzlils@protonmail.com>2023-08-04 01:12:42 +0300
committertzlil <tzlils@protonmail.com>2023-08-04 01:12:42 +0300
commit53287e3bdf3a9fcd2782af0069a2bdd55fa3f7c3 (patch)
treea7fb7bf5cc1bf4d8e057185323503afc6757f219
parent4ec3708822c82516898e636c7994abf8326ac85a (diff)
fix networking
-rw-r--r--hosts/navi/default.nix4
-rw-r--r--hosts/navi/hardware-configuration.nix1
-rw-r--r--profiles/network.nix3
3 files changed, 4 insertions, 4 deletions
diff --git a/hosts/navi/default.nix b/hosts/navi/default.nix
index 7350e71..9a926c9 100644
--- a/hosts/navi/default.nix
+++ b/hosts/navi/default.nix
@@ -53,8 +53,8 @@
     #   networkConfig.DHCP = "yes";
     # };
 
-    systemd.network.networks."10-eth0" = {
-      matchConfig.Name = "eth0";
+    systemd.network.networks."10-wlp1s0" = {
+      matchConfig.Name = "wlp1s0";
       networkConfig.DHCP = "yes";
     };
 
diff --git a/hosts/navi/hardware-configuration.nix b/hosts/navi/hardware-configuration.nix
index 64b8644..aa88984 100644
--- a/hosts/navi/hardware-configuration.nix
+++ b/hosts/navi/hardware-configuration.nix
@@ -62,6 +62,7 @@ in {
                   };
                 };
               };
+            };
           };
         };
       };
diff --git a/profiles/network.nix b/profiles/network.nix
index 461106f..fc4af5c 100644
--- a/profiles/network.nix
+++ b/profiles/network.nix
@@ -7,6 +7,7 @@
 }: {
   imports = [];
   config = {
+    systemd.network.enable = true;
     networking = {
       firewall = {
         enable = true;
@@ -15,9 +16,7 @@
         checkReversePath = "loose";
       };
       networkmanager.enable = true;
-      useDHCP = false;
       nameservers = ["127.0.0.1" "::1"];
-      networkmanager.dns = "none";
       extraHosts = ''
         100.99.246.128 pc
         100.105.242.70 phone