@@ -3,14 +3,8 @@
7 cfg = config.networking.wireless;
6 cfg = config.networking.wireless;
8 configFile = "/etc/wpa_supplicant.conf";
7 configFile = "/etc/wpa_supplicant.conf";
12− optional (config.networking.WLANInterface != "") config.networking.WLANInterface;
@@ -18,12 +12,6 @@ in
18 ###### interface
12 ###### interface
20 options = {
14 options = {
22− networking.WLANInterface = mkOption {
24− description = "Obsolete. Use <option>networking.wireless.interfaces</option> instead.";
27 networking.wireless = {
15 networking.wireless = {
28 enable = mkOption {
16 enable = mkOption {
29 type = types.bool;
17 type = types.bool;
@@ -95,8 +83,9 @@ in
95 services.dbus.packages = [ pkgs.wpa_supplicant ];
83 services.dbus.packages = [ pkgs.wpa_supplicant ];
97 # FIXME: start a separate wpa_supplicant instance per interface.
85 # FIXME: start a separate wpa_supplicant instance per interface.
98− jobs.wpa_supplicant =
86+ jobs.wpa_supplicant = let
87+ ifaces = cfg.interfaces;
99− { description = "WPA Supplicant";
88+ in { description = "WPA Supplicant";
101 wantedBy = [ "network.target" ];
90 wantedBy = [ "network.target" ];