Wpa supplicant: Difference between revisions

imported>Jmesmon
use the `userControlled.enable` instead of custom config
imported>Vater
link for an example to configure (the at european universities well known) [https://eduroam.org eduroam] with wpa_supplicant
Line 1: Line 1:
Can be enabled on NixOS with <code>networking.wireless.enable = true</code>.
{{DISPLAYTITLE:wpa_supplicant}}
== General ==
 
'''[https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/networking/wpa_supplicant.nix wpa_supplicant]''' can be enabled on NixOS with <code>networking.wireless.enable = true</code>.


Extra configuration can be specified inside <code>networking.wireless.extraConfig</code>.
Extra configuration can be specified inside <code>networking.wireless.extraConfig</code>.


== Wpa_supplicant_gui ==
== wpa_supplicant_gui ==


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:
Line 18: Line 21:


== Using wpa_supplicant from within the configuration file ==
== Using wpa_supplicant from within the configuration file ==
You can configure your networks with the option <code>networks</code>. You have to fill the name(s) of your wifi(s) after the option and the preshared-key(s) (usually called <code>psk</code>). If you do not want to have your secret key in plaintext, you can use pskRaw, generated with <code>wpa_passphrase SSID password</code>. An example of using networks :
You can configure your networks with the option <code>networks</code>. You have to fill the name(s) of your wifi(s) after the option and the preshared-key(s) (usually called <code>psk</code>). If you do not want to have your secret key in plaintext, you can use pskRaw, generated with <code>wpa_passphrase SSID password</code>. An example of using networks :
<syntaxHighlight lang=nix>
<syntaxHighlight lang=nix>
Line 39: Line 43:
journalctl -u wpa_supplicant -f
journalctl -u wpa_supplicant -f
</syntaxHighlight>
</syntaxHighlight>
== 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]])