Wifi: No automatic connection when using iwd instead of wpa_supplicant

Iwd is technically way better than wpa_supplicant and likely also way more secure.

On NixOS it is easy to set it as the wifi backend used by Networkmanager (so you dont enable iwd itself, networkmanager handles it).

The connection passwords need to be entered again, then it works well.

But there is no automatic connection on login, only when using iwd. Tried on Fedora Kinoite too.

Do you know the reason?

Did you check in plasma network settings this wifi network is set to auto-connect ?

Or nmcli device set IFNAME autoconnect yes that I found using “networkmanager autoconnect” is a search engine…

Otherwise it is an iwd/Networkmanager issue.

Yes this is the default value.

When switching between wpa-supplicant and iwd, the connections change somehow and you need to set them up again.

I try if removing the unneeded dupe fixes it, otherwise this is some underlying bug

Indeed! the issue lies in the duplicate connection configured, having the same SSID, password etc.

Removing the old one (generated using wpa_supplicant) makes autoconnect work again!

Damn, at least on NixOS, iwd just works.