From 8369ea414556e4a0b8b313ed7a9ce366cb8b9e22 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Thu, 9 Mar 2023 11:43:47 +0800 Subject: [PATCH] hosts/ni: switch to iwd for wireless network configuration --- .../hardware/traditional-networking.nix | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/hosts/ni/modules/hardware/traditional-networking.nix b/hosts/ni/modules/hardware/traditional-networking.nix index ec61cd27..5a145f3f 100644 --- a/hosts/ni/modules/hardware/traditional-networking.nix +++ b/hosts/ni/modules/hardware/traditional-networking.nix @@ -10,6 +10,26 @@ 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";