Unverified Commit eda65471 authored by Winter's avatar Winter Committed by GitHub
Browse files

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

parents 8a05ea50 8aa7a076
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@ let
  defaults = {
    # without UseDefaultInterface, sometimes wlan0 simply goes AWOL with NetworkManager
    # https://iwd.wiki.kernel.org/interface_lifecycle#interface_management_in_iwd
    General.UseDefaultInterface =
    DriverQuirks.UseDefaultInterface =
      with config.networking.networkmanager;
      (enable && (wifi.backend == "iwd"));
  };
@@ -61,6 +61,12 @@ in
          Only one wireless daemon is allowed at the time: networking.wireless.enable and networking.wireless.iwd.enable are mutually exclusive.
        '';
      }
      {
        assertion = !(cfg.settings ? General && cfg.settings.General ? UseDefaultInterface);
        message = ''
          `networking.wireless.iwd.settings.General.UseDefaultInterface` has been deprecated. Use `networking.wireless.iwd.settings.DriverQuirks.UseDefaultInterface` instead.
        '';
      }
    ];

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