Wpa supplicant: Difference between revisions

imported>Vater
link for an example to configure (the at european universities well known) [https://eduroam.org eduroam] with wpa_supplicant
imported>Vater
mNo edit summary
Line 10: Line 10:
To be able to use <code>wpa_gui</code> or <code>wpa_cli</code> as user put the following in your <code>configuration.nix</code> file:
To be able to use <code>wpa_gui</code> or <code>wpa_cli</code> as user put the following in your <code>configuration.nix</code> file:


<syntaxHighlight lang=ini>
<syntaxHighlight lang=nix>
networking.wireless.userControlled.enable = true;
networking.wireless.userControlled.enable = true;
</syntaxHighlight>
</syntaxHighlight>
Line 32: Line 32:


From the shell terminal, use the <code>wpa_cli</code> command line tool and specify the network interface device with -g
From the shell terminal, use the <code>wpa_cli</code> command line tool and specify the network interface device with -g
<syntaxHighlight lang=sh>
<syntaxHighlight lang=bash>
wpa_cli -g /run/wpa_supplicant/wlp3s0
wpa_cli -g /run/wpa_supplicant/wlp3s0
list_network
list_network
Line 40: Line 40:
As a means to debug if things are working, open another terminal and examine the logs by:
As a means to debug if things are working, open another terminal and examine the logs by:


<syntaxHighlight lang=sh>
<syntaxHighlight lang=bash>
journalctl -u wpa_supplicant -f
journalctl -u wpa_supplicant -f
</syntaxHighlight>
</syntaxHighlight>
Line 46: Line 46:
== External links ==
== External links ==


[https://www.stura.htw-dresden.de/stura/ref/hopo/dk/nachrichten/eduroam-meets-nixos (german) article ''eduroam meets NixOS'' ()] (instance ''University of Applied Sciences Dresden'': The [https://cat.eduroam.org/?idp=5106&profile=5098 eduroam installer for GNU/Linux] works [https://www.htw-dresden.de/en/university/organisation/it-service-centre/services-for-workplace-and-communication/wi-fi-/-wlan/eduroam/linux for example for Ubuntu] but not [[NixOS]])
[https://www.stura.htw-dresden.de/stura/ref/hopo/dk/nachrichten/eduroam-meets-nixos (german) article ''eduroam meets NixOS'' (with configuration)] (instance ''University of Applied Sciences Dresden'': The [https://cat.eduroam.org/?idp=5106&profile=5098 eduroam installer for GNU/Linux] works [https://www.htw-dresden.de/en/university/organisation/it-service-centre/services-for-workplace-and-communication/wi-fi-/-wlan/eduroam/linux for example for Ubuntu] but not [[NixOS]])