From 5c205dd88b934340557a2be5bb66c49228068a0e Mon Sep 17 00:00:00 2001 From: Michael Czechowski Date: Tue, 16 Sep 2025 11:20:36 +0200 Subject: [PATCH] fix: switch to wpa_supplicant backend for standard WiFi support - Change NetworkManager backend from iwd to wpa_supplicant - Remove custom WiFi profiles to allow auto-detection - Remove iwd service and package - Add standard WiFi packages: wpa_supplicant, wirelesstools, iw - This provides standard NixOS live ISO WiFi functionality Fixes WiFi controller detection issues in live USB environment. --- common.nix | 30 ++++-------------------------- 1 file changed, 4 insertions(+), 26 deletions(-) diff --git a/common.nix b/common.nix index d0e668c..180ca03 100644 --- a/common.nix +++ b/common.nix @@ -234,29 +234,8 @@ isoConfig networking = { networkmanager = { enable = true; - wifi.backend = "iwd"; # Use iwd backend for better WiFi support + wifi.backend = "wpa_supplicant"; # Standard backend for live ISOs dns = "none"; # We use dnsmasq - ensureProfiles = { - environmentFiles = [ "/etc/NetworkManager/workshop-wifi.env" ]; - profiles = { - "workshop-hotspot" = { - connection = { - id = "workshop-hotspot"; - type = "wifi"; - autoconnect = true; - autoconnect-priority = 10; - }; - wifi = { - ssid = "$WORKSHOP_SSID"; - mode = "infrastructure"; - }; - wifi-security = { - key-mgmt = "wpa-psk"; - psk = "$WORKSHOP_PSK"; - }; - }; - }; - }; }; hostName = if isLiveIso then "workshop-live" else "workshop-vm"; hosts."127.0.0.1" = [ @@ -297,9 +276,6 @@ isoConfig # Disable systemd-resolved (conflicts with dnsmasq) services.resolved.enable = false; - # Enable iwd for better WiFi support - networking.wireless.iwd.enable = true; - # Container Runtime virtualisation.docker.enable = true; @@ -370,7 +346,9 @@ isoConfig networkmanager networkmanagerapplet # Network Manager GUI for GNOME gnome-control-center # GNOME Settings (includes network panel) - iwd # iNet wireless daemon for better WiFi support + wpa_supplicant # Standard WiFi supplicant + wirelesstools # Standard WiFi tools + iw # Modern WiFi tools docker docker-compose gnome-terminal