@@ -3,14 +3,8 @@
33with lib;
44
55let
6−
76 cfg = config.networking.wireless;
87 configFile = "/etc/wpa_supplicant.conf";
9−
10− ifaces =
11− cfg.interfaces ++
12− optional (config.networking.WLANInterface != "") config.networking.WLANInterface;
13−
148in
159
1610{
@@ -18,12 +12,6 @@ in
1812 ###### interface
1913
2014 options = {
21−
22− networking.WLANInterface = mkOption {
23− default = "";
24− description = "Obsolete. Use <option>networking.wireless.interfaces</option> instead.";
25− };
26−
2715 networking.wireless = {
2816 enable = mkOption {
2917 type = types.bool;
@@ -95,8 +83,9 @@ in
9583 services.dbus.packages = [ pkgs.wpa_supplicant ];
9684
9785 # FIXME: start a separate wpa_supplicant instance per interface.
98− jobs.wpa_supplicant =
99− { description = "WPA Supplicant";
86+ jobs.wpa_supplicant = let
87+ ifaces = cfg.interfaces;
88+ in { description = "WPA Supplicant";
10089
10190 wantedBy = [ "network.target" ];
10291