ok, this is weird… I said how NoMachine would show a white screen with Wayland, but it would work when using X11. Well, after starting the KDE session again with Wayland after I got it working with X11, now it work with Wayland as well. Just to clarify, I had rebooted the machine 3-4 times and tried with the Wayland server before switching to X11, and I would always get the white screen.