wpa_supplicant: add D-Bus interface
svn path=/nixos/trunk/; revision=30972
This commit is contained in:
parent
ae82e7b048
commit
a87a1bca04
|
@ -44,6 +44,8 @@ in
|
||||||
|
|
||||||
environment.systemPackages = [ pkgs.wpa_supplicant ];
|
environment.systemPackages = [ pkgs.wpa_supplicant ];
|
||||||
|
|
||||||
|
services.dbus.packages = [ pkgs.wpa_supplicant ];
|
||||||
|
|
||||||
jobs.wpa_supplicant =
|
jobs.wpa_supplicant =
|
||||||
{ startOn = "started network-interfaces";
|
{ startOn = "started network-interfaces";
|
||||||
stopOn = "stopping network-interfaces";
|
stopOn = "stopping network-interfaces";
|
||||||
|
@ -57,8 +59,8 @@ in
|
||||||
'';
|
'';
|
||||||
|
|
||||||
exec =
|
exec =
|
||||||
"wpa_supplicant -s -C /var/run/wpa_supplicant " +
|
"wpa_supplicant -s -u -c ${configFile} "
|
||||||
"-c ${configFile} -i${config.networking.WLANInterface}";
|
+ (optionalString (config.networking.WLANInterface != null) "-i ${config.networking.WLANInterface}");
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue