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.
This commit is contained in:
30
common.nix
30
common.nix
@@ -234,29 +234,8 @@ isoConfig
|
|||||||
networking = {
|
networking = {
|
||||||
networkmanager = {
|
networkmanager = {
|
||||||
enable = true;
|
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
|
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";
|
hostName = if isLiveIso then "workshop-live" else "workshop-vm";
|
||||||
hosts."127.0.0.1" = [
|
hosts."127.0.0.1" = [
|
||||||
@@ -297,9 +276,6 @@ isoConfig
|
|||||||
# Disable systemd-resolved (conflicts with dnsmasq)
|
# Disable systemd-resolved (conflicts with dnsmasq)
|
||||||
services.resolved.enable = false;
|
services.resolved.enable = false;
|
||||||
|
|
||||||
# Enable iwd for better WiFi support
|
|
||||||
networking.wireless.iwd.enable = true;
|
|
||||||
|
|
||||||
# Container Runtime
|
# Container Runtime
|
||||||
virtualisation.docker.enable = true;
|
virtualisation.docker.enable = true;
|
||||||
|
|
||||||
@@ -370,7 +346,9 @@ isoConfig
|
|||||||
networkmanager
|
networkmanager
|
||||||
networkmanagerapplet # Network Manager GUI for GNOME
|
networkmanagerapplet # Network Manager GUI for GNOME
|
||||||
gnome-control-center # GNOME Settings (includes network panel)
|
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
|
||||||
docker-compose
|
docker-compose
|
||||||
gnome-terminal
|
gnome-terminal
|
||||||
|
|||||||
Reference in New Issue
Block a user