From 53287e3bdf3a9fcd2782af0069a2bdd55fa3f7c3 Mon Sep 17 00:00:00 2001 From: tzlil Date: Fri, 4 Aug 2023 01:12:42 +0300 Subject: fix networking --- hosts/navi/default.nix | 4 ++-- hosts/navi/hardware-configuration.nix | 1 + profiles/network.nix | 3 +-- 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 -- cgit 1.4.1