Skip to content

Commit eda6547

Browse files
authored
nixos/iwd: move General.UseDefaultInterface to DriverQuirks.DefaultInterface (#397001)
2 parents 8a05ea5 + 8aa7a07 commit eda6547

File tree

1 file changed

+7
-1
lines changed
  • nixos/modules/services/networking

1 file changed

+7
-1
lines changed

nixos/modules/services/networking/iwd.nix

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ let
2020
defaults = {
2121
# without UseDefaultInterface, sometimes wlan0 simply goes AWOL with NetworkManager
2222
# https://iwd.wiki.kernel.org/interface_lifecycle#interface_management_in_iwd
23-
General.UseDefaultInterface =
23+
DriverQuirks.UseDefaultInterface =
2424
with config.networking.networkmanager;
2525
(enable && (wifi.backend == "iwd"));
2626
};
@@ -61,6 +61,12 @@ in
6161
Only one wireless daemon is allowed at the time: networking.wireless.enable and networking.wireless.iwd.enable are mutually exclusive.
6262
'';
6363
}
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+
}
6470
];
6571

6672
environment.etc."iwd/${configFile.name}".source = configFile;

0 commit comments

Comments
 (0)