From 56a53ff458d470e6d2ccf1c2712af0ff594e25c4 Mon Sep 17 00:00:00 2001 From: Robin Gloster Date: Tue, 29 Dec 2015 10:21:38 +0000 Subject: wpa_supplicant module: add networks option --- nixos/doc/manual/configuration/wireless.xml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'nixos/doc/manual/configuration') 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; -NixOS currently does not generate wpa_supplicant's -configuration file, /etc/wpa_supplicant.conf. You should edit this file +NixOS lets you specify networks for wpa_supplicant declaratively: + +networking.wireless.networks = { + echelon = { + psk = "abcdefgh"; + }; + "free.wifi" = {}; +} + + +When no networks are set it will default to using a configuration file at +/etc/wpa_supplicant.conf. You should edit this file yourself to define wireless networks, WPA keys and so on (see wpa_supplicant.conf(5)). -- cgit 1.4.1