Adding a not-very-nice option to allow setting the wpa_supplicant interface.

(eth1 in my PC, instead of the previously hardcoded wlan0)

svn path=/nixos/trunk/; revision=18862
This commit is contained in:
Lluís Batlle i Rossell 2009-12-09 20:30:40 +00:00
parent 38aeb2fdc8
commit b005e22952

View file

@ -28,6 +28,13 @@ in
'';
};
networking.WLANInterface = mkOption {
default = "wlan0";
description = ''
The interface wpa_supplicant will use, if enableWLAN is enabled.
'';
};
};
@ -49,7 +56,7 @@ in
exec =
"${pkgs.wpa_supplicant}/sbin/wpa_supplicant " +
"-C /var/run/wpa_supplicant -c ${configFile} -iwlan0";
"-C /var/run/wpa_supplicant -c ${configFile} -i${config.networking.WLANInterface}";
};
};