diff options
author | Robin Gloster <mail@glob.in> | 2015-12-29 10:21:38 +0000 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2015-12-29 18:49:39 +0000 |
commit | 56a53ff458d470e6d2ccf1c2712af0ff594e25c4 (patch) | |
tree | 859dd3d28b13e4648f246afaac32026a8c1b4aa3 /nixos/doc | |
parent | 9dceabc95dfefc01cef566ffa463c7731da88180 (diff) |
wpa_supplicant module: add networks option
Diffstat (limited to 'nixos/doc')
-rw-r--r-- | nixos/doc/manual/configuration/wireless.xml | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/nixos/doc/manual/configuration/wireless.xml b/nixos/doc/manual/configuration/wireless.xml index 373a9168cc87..13e4283d241c 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> |