Wpa supplicant: Difference between revisions
imported>Truthadjustr No edit summary |
imported>Sheepfleece m Move .conf to configuration.nix |
||
Line 5: | Line 5: | ||
== Wpa_supplicant_gui == | == Wpa_supplicant_gui == | ||
To be able to use <code>wpa_gui</code> as user put the following in your <code> | To be able to use <code>wpa_gui</code> as user put the following in your <code>configuration.nix</code> file: | ||
<syntaxHighlight lang=ini> | <syntaxHighlight lang=ini> | ||
ctrl_interface=/run/wpa_supplicant | networking.wireless.extraConfig = '' | ||
ctrl_interface_group=wheel | ctrl_interface=/run/wpa_supplicant | ||
ctrl_interface_group=wheel | |||
''; | |||
</syntaxHighlight> | </syntaxHighlight> | ||
Revision as of 20:59, 9 March 2020
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 configuration.nix
file:
networking.wireless.extraConfig = ''
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
From the shell terminal, use the `wpa_cli` command line tool and specify the network interface device with -g
wpa_cli -g /run/wpa_supplicant/wlp3s0
list_network
select_network 2
As a means to debug if things are working, open another terminal and examine the logs by:
journalctl -u wpa_supplicant -f