Wpa supplicant: Difference between revisions

From NixOS Wiki
imported>Truthadjustr
No edit summary
imported>Truthadjustr
No edit summary
Line 19: Line 19:


== Switching Network ==
== Switching Network ==
 
<syntaxHighlight lang=nix>
wpa_cli -g /run/wpa_supplicant/wlp3s0
wpa_cli -g /run/wpa_supplicant/wlp3s0
list_network
list_network
select_network 2
select_network 2
</syntaxHighlight>

Revision as of 18:12, 1 June 2018

Can be enabled on NixOS with networking.wireless.enable = true.

By default `wpa_supplicant` will read its configuration from /etc/wpa_supplicant.conf

Wpa_supplicant_gui

To be able to use wpa_gui as user put the following in your /etc/wpa_supplicant.conf:

ctrl_interface=/run/wpa_supplicant
ctrl_interface_group=wheel

Also your user must be part of the wheel group (replace USER with your username):

users.extraUsers.USER.extraGroups = [ "wheel" ];

Switching Network

wpa_cli -g /run/wpa_supplicant/wlp3s0
list_network
select_network 2