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:
parent
38aeb2fdc8
commit
b005e22952
@ -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 =
|
exec =
|
||||||
"${pkgs.wpa_supplicant}/sbin/wpa_supplicant " +
|
"${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}";
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user