How to set default wireless networks when using networkmanager

Hi,
I would like to have the local free wifi preconfigured when using networkmanager, but it tells me that networking.wireless and networking.networkmanager are incompatible, unless I add some unmanaged interfaces.

Should I just tell it not to manage the wifi interface?
But that wouldn’t let me add wireless networks through something like nmtui.

The manual recommends to add the following unmanaged config:

networking.networkmanager.unmanaged = [
   "*" "except:type:wwan" "except:type:gsm"
];

But that looks like it would also block networkmanager from managing wired ethernet interfaces, right?

1 Like