mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 20:39:04 +02:00
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 =
|
||||
"${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…
Reference in a new issue