I switched to Wayland, now `ssh -X` doesn't work

I see in some places of the net that ssh -X should work via Xwayland, but it isn’t working for me. I SSHed into a machine that uses Xorg, then trying to run an app says display not found, thus it does not forward to my machine.

Do I need to configure something to make it work in NixOS?


I am not sure this is supported under Wayland, I would ask on GNOME channels.