diff --git a/hosts/skipper/network.nix b/hosts/skipper/network.nix index 105a954..788fba3 100644 --- a/hosts/skipper/network.nix +++ b/hosts/skipper/network.nix @@ -1,6 +1,14 @@ {lib, ...}: { networking = { hostName = "Skipper"; + networkmanager = { + enable = true; + dns = "systemd-resolved"; + wifi = { + backend = "iwd"; + powersave = false; + }; + }; useDHCP = lib.mkDefault false; wireless.iwd = { enable = true; @@ -17,44 +25,4 @@ }; services.resolved.enable = true; - - systemd.network = { - enable = true; - networks = { - "41-ether" = { - enable = true; - matchConfig = { - Type = "ether"; - }; - networkConfig = { - DHCP = "yes"; - }; - dhcpV4Config = { - UseDomains = true; - }; - ipv6AcceptRAConfig = { - UseDomains = true; - }; - }; - "40-wireless" = { - enable = true; - matchConfig = { - Type = "wlan"; - }; - networkConfig = { - DHCP = "yes"; - IgnoreCarrierLoss = "3s"; - }; - dhcpV4Config = { - UseDomains = true; - }; - ipv6AcceptRAConfig = { - UseDomains = true; - }; - linkConfig = { - RequiredForOnline = "yes"; - }; - }; - }; - }; } diff --git a/hosts/skipper/persistence.nix b/hosts/skipper/persistence.nix index 7d40e89..c59e3cd 100644 --- a/hosts/skipper/persistence.nix +++ b/hosts/skipper/persistence.nix @@ -14,6 +14,7 @@ _: { "/var/lib/iwd" "/var/lib/libvirt" "/var/lib/machines" + "/var/lib/NetworkManager" "/var/lib/nixos" "/var/lib/portables" "/var/lib/systemd"