From b005e22952ee13027b7a746c39672cd5f27149de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Wed, 9 Dec 2009 20:30:40 +0000 Subject: [PATCH] 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 --- modules/services/networking/wpa_supplicant.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/services/networking/wpa_supplicant.nix b/modules/services/networking/wpa_supplicant.nix index 93450f8eac1..10c9041cf3e 100644 --- a/modules/services/networking/wpa_supplicant.nix +++ b/modules/services/networking/wpa_supplicant.nix @@ -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}"; }; };