summary refs log tree commit diff
path: root/nixos/doc/manual/configuration
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2015-12-29 10:21:38 +0000
committerRobin Gloster <mail@glob.in>2015-12-29 18:49:39 +0000
commit56a53ff458d470e6d2ccf1c2712af0ff594e25c4 (patch)
tree859dd3d28b13e4648f246afaac32026a8c1b4aa3 /nixos/doc/manual/configuration
parent9dceabc95dfefc01cef566ffa463c7731da88180 (diff)
downloadnixpkgs-56a53ff458d470e6d2ccf1c2712af0ff594e25c4.tar
nixpkgs-56a53ff458d470e6d2ccf1c2712af0ff594e25c4.tar.gz
nixpkgs-56a53ff458d470e6d2ccf1c2712af0ff594e25c4.tar.bz2
nixpkgs-56a53ff458d470e6d2ccf1c2712af0ff594e25c4.tar.lz
nixpkgs-56a53ff458d470e6d2ccf1c2712af0ff594e25c4.tar.xz
nixpkgs-56a53ff458d470e6d2ccf1c2712af0ff594e25c4.tar.zst
nixpkgs-56a53ff458d470e6d2ccf1c2712af0ff594e25c4.zip
wpa_supplicant module: add networks option
Diffstat (limited to 'nixos/doc/manual/configuration')
-rw-r--r--nixos/doc/manual/configuration/wireless.xml14
1 files changed, 12 insertions, 2 deletions
diff --git a/nixos/doc/manual/configuration/wireless.xml b/nixos/doc/manual/configuration/wireless.xml
index 373a9168cc8..13e4283d241 100644
--- a/nixos/doc/manual/configuration/wireless.xml
+++ b/nixos/doc/manual/configuration/wireless.xml
@@ -18,8 +18,18 @@ NixOS will start wpa_supplicant for you if you enable this setting:
 networking.wireless.enable = true;
 </programlisting>
 
-NixOS currently does not generate wpa_supplicant's
-configuration file, <literal>/etc/wpa_supplicant.conf</literal>. You should edit this file
+NixOS lets you specify networks for wpa_supplicant declaratively:
+<programlisting>
+networking.wireless.networks = {
+  echelon = {
+    psk = "abcdefgh";
+  };
+  "free.wifi" = {};
+}
+</programlisting>
+
+When no networks are set it will default to using a configuration file at
+<literal>/etc/wpa_supplicant.conf</literal>. You should edit this file
 yourself to define wireless networks, WPA keys and so on (see
 wpa_supplicant.conf(5)).
 </para>