diff --git a/hosts/ni/hardware-configuration.nix b/hosts/ni/hardware-configuration.nix index 49c5be98..80f7def1 100644 --- a/hosts/ni/hardware-configuration.nix +++ b/hosts/ni/hardware-configuration.nix @@ -12,6 +12,26 @@ boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; + # The simpler WiFi manager. + networking.wireless.iwd = { + enable = true; + settings = { + General = { + EnableNetworkConfiguration = true; + UseDefaultInterface = true; + ControlPortOverNL80211 = true; + }; + + Network = { + AutoConnect = true; + NameResolvingService = "systemd"; + }; + }; + }; + + # Set the NetworkManager backend to iwd for workflows that use it. + network.networkmanager.wifi.backend = "iwd"; + # Use the systemd-boot EFI boot loader. boot.loader.systemd-boot = { enable = true; diff --git a/hosts/ni/modules/hardware/traditional-networking.nix b/hosts/ni/modules/hardware/traditional-networking.nix index 5a145f3f..ec61cd27 100644 --- a/hosts/ni/modules/hardware/traditional-networking.nix +++ b/hosts/ni/modules/hardware/traditional-networking.nix @@ -10,26 +10,6 @@ interfaces.enp1s0.useDHCP = true; interfaces.wlp2s0.useDHCP = true; - # The simpler WiFi manager. - wireless.iwd = { - enable = true; - settings = { - General = { - EnableNetworkConfiguration = true; - UseDefaultInterface = true; - ControlPortOverNL80211 = true; - }; - - Network = { - AutoConnect = true; - NameResolvingService = "systemd"; - }; - }; - }; - - # Set the NetworkManager backend to iwd for workflows that use it. - networkmanager.wifi.backend = "iwd"; - bonds.bond0 = { driverOptions = { miimon = "100";