git.iko.soy/typeable/nixpkgs
on master help sign in
wpa_supplicant module: remove obsolete option
57210ceRobin Gloster
nixos/modules/services/networking/wpa_supplicant.nix+3−14
@@ -3,14 +3,8 @@
3with lib;
3with lib;
4
4
5let
5let
6−
7 cfg = config.networking.wireless;
6 cfg = config.networking.wireless;
8 configFile = "/etc/wpa_supplicant.conf";
7 configFile = "/etc/wpa_supplicant.conf";
9−
10− ifaces =
11− cfg.interfaces ++
12− optional (config.networking.WLANInterface != "") config.networking.WLANInterface;
13−
14in
8in
15
9
16{
10{
@@ -18,12 +12,6 @@ in
18 ###### interface
12 ###### interface
19
13
20 options = {
14 options = {
21−
22− networking.WLANInterface = mkOption {
23− default = "";
24− description = "Obsolete. Use <option>networking.wireless.interfaces</option> instead.";
25− };
26−
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 ];
96
84
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";
100
89
101 wantedBy = [ "network.target" ];
90 wantedBy = [ "network.target" ];
102
91