at 15.09-beta 1.3 kB view raw
1<section xmlns="http://docbook.org/ns/docbook" 2 xmlns:xlink="http://www.w3.org/1999/xlink" 3 xmlns:xi="http://www.w3.org/2001/XInclude" 4 version="5.0" 5 xml:id="sec-wireless"> 6 7<title>Wireless Networks</title> 8 9<para>For a desktop installation using NetworkManager (e.g., GNOME), 10you just have to make sure the user is in the 11<code>networkmanager</code> group and you can skip the rest of this 12section on wireless networks.</para> 13 14<para> 15NixOS will start wpa_supplicant for you if you enable this setting: 16 17<programlisting> 18networking.wireless.enable = true; 19</programlisting> 20 21NixOS currently does not generate wpa_supplicant's 22configuration file, <literal>/etc/wpa_supplicant.conf</literal>. You should edit this file 23yourself to define wireless networks, WPA keys and so on (see 24wpa_supplicant.conf(5)). 25</para> 26 27<para> 28If you are using WPA2 the <command>wpa_passphrase</command> tool might be useful 29to generate the <literal>wpa_supplicant.conf</literal>. 30 31<screen> 32$ wpa_passphrase ESSID PSK > /etc/wpa_supplicant.conf</screen> 33 34After you have edited the <literal>wpa_supplicant.conf</literal>, 35you need to restart the wpa_supplicant service. 36 37<screen> 38$ systemctl restart wpa_supplicant.service</screen> 39</para> 40 41</section>