Wpa supplicant: Difference between revisions
imported>Rasmus-kirk mNo edit summary |
imported>Aaronchall Add fuller example |
||
| Line 28: | Line 28: | ||
If you have multiple networks, and you want to set the priority, you can use <code>networking.wireless.networks.Wifi_name.priority = <value>;</code> | If you have multiple networks, and you want to set the priority, you can use <code>networking.wireless.networks.Wifi_name.priority = <value>;</code> | ||
A full example to connect to a university or similar network that uses MSCHAPV2 (like UWF): | |||
<syntaxHighlight lang=nixos> | |||
networking.wireless.networks."uwf-argo-air" = { | |||
hidden = true; | |||
auth = '' | |||
key_mgmt=WPA-EAP | |||
eap=PEAP | |||
phase2="auth=MSCHAPV2" | |||
identity="unx42" | |||
password="p@$$w0rd" | |||
''; | |||
}; | |||
</syntaxHighlight> | |||
To avoid having your network password in accessible plaintext on your system or in your version control consider using [https://search.nixos.org/options?show=networking.wireless.environmentFile&from=0&size=50&sort=relevance&type=packages&query=networking.wireless networking.wireless.environmentFile]. | |||
== Switching Network == | == Switching Network == | ||