nixos/iwd: move General.UseDefaultInterface to DriverQuirks.DefaultInterface (#397001)

authored by winter.bsky.social and committed by GitHub eda65471 8a05ea50

+7 -1
+7 -1
nixos/modules/services/networking/iwd.nix
··· 20 defaults = { 21 # without UseDefaultInterface, sometimes wlan0 simply goes AWOL with NetworkManager 22 # https://iwd.wiki.kernel.org/interface_lifecycle#interface_management_in_iwd 23 - General.UseDefaultInterface = 24 with config.networking.networkmanager; 25 (enable && (wifi.backend == "iwd")); 26 }; ··· 59 assertion = !config.networking.wireless.enable; 60 message = '' 61 Only one wireless daemon is allowed at the time: networking.wireless.enable and networking.wireless.iwd.enable are mutually exclusive. 62 ''; 63 } 64 ];
··· 20 defaults = { 21 # without UseDefaultInterface, sometimes wlan0 simply goes AWOL with NetworkManager 22 # https://iwd.wiki.kernel.org/interface_lifecycle#interface_management_in_iwd 23 + DriverQuirks.UseDefaultInterface = 24 with config.networking.networkmanager; 25 (enable && (wifi.backend == "iwd")); 26 }; ··· 59 assertion = !config.networking.wireless.enable; 60 message = '' 61 Only one wireless daemon is allowed at the time: networking.wireless.enable and networking.wireless.iwd.enable are mutually exclusive. 62 + ''; 63 + } 64 + { 65 + assertion = !(cfg.settings ? General && cfg.settings.General ? UseDefaultInterface); 66 + message = '' 67 + `networking.wireless.iwd.settings.General.UseDefaultInterface` has been deprecated. Use `networking.wireless.iwd.settings.DriverQuirks.UseDefaultInterface` instead. 68 ''; 69 } 70 ];