about summary refs log tree commit diff
path: root/pkgs/tools/networking/wicd
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2011-01-13 10:03:20 +0000
committerLudovic Courtès <ludo@gnu.org>2011-01-13 10:03:20 +0000
commit80a9a7f8bb51d6eeafefc66791dbfd88fcd3ad63 (patch)
tree7f01381934ea51308976d8c42ebbfa9cc6280f00 /pkgs/tools/networking/wicd
parent9b9b5e2f53b342128a8c450c61ee40adb48cb462 (diff)
downloadnixlib-80a9a7f8bb51d6eeafefc66791dbfd88fcd3ad63.tar
nixlib-80a9a7f8bb51d6eeafefc66791dbfd88fcd3ad63.tar.gz
nixlib-80a9a7f8bb51d6eeafefc66791dbfd88fcd3ad63.tar.bz2
nixlib-80a9a7f8bb51d6eeafefc66791dbfd88fcd3ad63.tar.lz
nixlib-80a9a7f8bb51d6eeafefc66791dbfd88fcd3ad63.tar.xz
nixlib-80a9a7f8bb51d6eeafefc66791dbfd88fcd3ad63.tar.zst
nixlib-80a9a7f8bb51d6eeafefc66791dbfd88fcd3ad63.zip
Wicd: Add a template for WPA2-TTLS.
svn path=/nixpkgs/trunk/; revision=25534
Diffstat (limited to 'pkgs/tools/networking/wicd')
-rw-r--r--pkgs/tools/networking/wicd/default.nix6
-rw-r--r--pkgs/tools/networking/wicd/wpa2-ttls19
2 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/tools/networking/wicd/default.nix b/pkgs/tools/networking/wicd/default.nix
index 70cc4a3b46cf..fab91873a385 100644
--- a/pkgs/tools/networking/wicd/default.nix
+++ b/pkgs/tools/networking/wicd/default.nix
@@ -74,6 +74,12 @@ stdenv.mkDerivation rec {
     python setup.py install --prefix=$out
     ensureDir $out/share/other
     cp other/dhclient.conf.template.default $out/share/other/dhclient.conf.template.default
+
+    # Add a template for "WPA2 Enterprise" encryption as used, e.g., by the
+    # Eduroam network.  Taken and adapted from
+    # <http://wicd.net/punbb/viewtopic.php?id=87>.
+    cp -v "${./wpa2-ttls}" "$out/etc/encryption/templates/wpa2-ttls"
+    echo "wpa2-ttls" >> "$out/etc/encryption/templates/active"
   '';
 
   meta = {
diff --git a/pkgs/tools/networking/wicd/wpa2-ttls b/pkgs/tools/networking/wicd/wpa2-ttls
new file mode 100644
index 000000000000..7efdeffec84c
--- /dev/null
+++ b/pkgs/tools/networking/wicd/wpa2-ttls
@@ -0,0 +1,19 @@
+name = WPA2-TTLS
+author = various contributors
+version = 1
+require identity *Identity anonymous_identity *Anonymous_identity password *Password ca_cert *Path_to_CA_Cert
+-----
+ctrl_interface=/var/run/wpa_supplicant
+network={
+        ssid="$_ESSID"
+        scan_ssid=$_SCAN
+        proto=WPA2
+        key_mgmt=WPA-EAP
+        group=CCMP TKIP
+        eap=TTLS
+        identity="$_IDENTITY"
+        password="$_PASSWORD"
+        anonymous_identity="$_ANONYMOUS_IDENTITY"
+        ca_cert="$_CA_CERT"
+        phase2="auth=PAP"
+}