diff options
author | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2009-12-09 20:30:40 +0000 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2009-12-09 20:30:40 +0000 |
commit | b005e22952ee13027b7a746c39672cd5f27149de (patch) | |
tree | 55c652700f6b02ce707afccf91a48b28b0e9e29f /modules/services/networking/wpa_supplicant.nix | |
parent | 38aeb2fdc87c945443c8c31b8cefe9d5ee6000dc (diff) | |
download | nixpkgs-b005e22952ee13027b7a746c39672cd5f27149de.tar nixpkgs-b005e22952ee13027b7a746c39672cd5f27149de.tar.gz nixpkgs-b005e22952ee13027b7a746c39672cd5f27149de.tar.bz2 nixpkgs-b005e22952ee13027b7a746c39672cd5f27149de.tar.lz nixpkgs-b005e22952ee13027b7a746c39672cd5f27149de.tar.xz nixpkgs-b005e22952ee13027b7a746c39672cd5f27149de.tar.zst nixpkgs-b005e22952ee13027b7a746c39672cd5f27149de.zip |
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
Diffstat (limited to 'modules/services/networking/wpa_supplicant.nix')
-rw-r--r-- | modules/services/networking/wpa_supplicant.nix | 9 |
1 files changed, 8 insertions, 1 deletions
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}"; }; }; |