edit Wireless networkingNixOS' uses wpa_supplicant for wireless networking. This article describes how to configure NixOS to use wpa_supplicant and to connect to a variety of wireless networks. edit ConfigurationTo enable wireless networking add the following attribute to your networking.enableWLAN = true; You should already have set It might also be a good idea to enable a firewall by setting edit PrerequisitesBefore proceeding make sure to check wheather your wireless network card has properly been recognized. You can check this by issuing edit Scan for wireless networksTo scan for wireless networks in range you can use the following command. iwlist wlan0 scan edit Wirless networksConfiguration of wireless networks is being done in The file To the end of the file you can describe the wireless networks you want to connect to. In most cases you only need to specify a essid and a password. To add a wireless network callsed network={
ssid="mynetwork"
psk="mysecretpassphrase"
}
You now should reconfigure your system again and wpa_supplicant should take care of automatically getting you connected as soon as you are in range for any of the networks specified in edit Insecure wireless networksTo connect to a wireless network named network={ ssid="insecureNetwork" key_mgmt=NONE } |