Wpa supplicant: Difference between revisions
imported>Sheepfleece No edit summary |
imported>ImExtends Example of configuring networks with the configuration file. |
||
| Line 18: | Line 18: | ||
<syntaxHighlight lang=nix> | <syntaxHighlight lang=nix> | ||
users.extraUsers.USER.extraGroups = [ "wheel" ]; | users.extraUsers.USER.extraGroups = [ "wheel" ]; | ||
</syntaxHighlight> | |||
== 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 : | |||
<syntaxHighlight lang=nix> | |||
networking.wireless.networks.Wifi_name.pskRaw = "pskRaw generated"; | |||
</syntaxHighlight> | </syntaxHighlight> | ||