Network (connect to wifi)

I would like to know if there are any ways of connecting to a wifi network in this case eduroam declaratively.

General Wireless Network Configuration for Clients:
SSID: eduroam
Encryption Methods: WPA2 or WPA with AES
Protocol: IEEE 802.1X
Authentication Method:
EAP/Phase 1: EAP-PEAP or EAP-TTLS
Authentication/Phase 2: MSCHAPv2 or PAP
Anonymous Identity: anonymous@iam.education.lu
Username: IAMuserid@iam.education.lu
Password: Your IAM password

I need all this to connect to the network. If not possible I would like to know if there’s a way of doing this via command line with wpa_supplicant or anything else.

networking.wireless = {
  enable = true;
  networks.eduroam.auth = ''
    key_mgmt=WPA-EAP
    eap=PEAP
    identity="IAMuserid@iam.education.lu"
    password="Your IAM password"
  '';
};
1 Like

It didn’t work, no error really, just no connection! I’m pretty sure I need to use the anonymous identity as well, and that has been the problem!

Try adding anonymous_identity="anonymous@iam.education.lu" then.
There are a couple of examples and a link to a commented configuration file in man wpa_supplicant.conf.