How to get Wayland and X11 window managers and desktop environments in the same installation?

Hello! Newbie question:

Usually I want to use a truckload of different window managers and desktop environments.

How can I install in a same machine a X11 DE like GNOME or/and KDE, a X11 window manager like Ratpoison and/or Windowmaker, and a Wayland window manager like Sway and Wayfire?

I have tried with the services.xserver.displayManager.startx.enable = true; , however it failed to start GNOME when I called it from terminal.