I think we may need a NixOS expert here, but my hunch is that the libwxgtk / gtk library the erlang installation is using is compiled without Wayland support. meaning that you won’t get it running without Xwayland. Unfortunately I know very little of NixOS.