WiFi "No secrets were provided" Error

Hi friends, this is my first time installing NixOS as well as my first time posting here.
I’ve been experiencing an issue when attempting to connect to my WiFi through nmcli I receive a “Secrets were required, but not provided” error.
I’m using Network Manager and my network adapter is a Qualcomm Atheros QCA6174

This is my configuration.nix

The output of the “journalctl -b | grep wpa_supplicant” command (SSID replaced for privacy)

The output of the “systemctl list-units --type=service --state=running”

I’ve been attempting to find a fix for this problem for at least a week now, so any suggestions are welcome. If there is any more information that I could give that would be helpful in supporting me, please let me know. Thanks :slight_smile:

WPA: 4-Way Handshake failed - pre-shared key may be incorrect

This indicates the passphrase is incorrect.

How are you configuring the network? which nmcli command?

In alternative, you could try to configure the network declaratively. Try adding these lines:

networking.wireless.enable = true;
networking.wireless.networks."yourssid".psk = "yourpassphrase";
networking.networkmanager.unmanaged = [ "wlan0" ];  # or whatever your interface name is

and see if connects.

Thanks for responding.

This was the problem. Embarrassing! I really have no excuse for this, so I’m glad you encouraged me to double check.

Have a nice day :slightly_smiling_face:

1 Like