How can I run two Xorg servers at the same time?

I want to run two Xorg servers. Is that declaratively possible?:wink:

When I start another Xorg server here now with xinit, it changes the ownership of .XAuthority to root, so that causes a few problems;)

This might be a clue for you.

if you grok sourcegraph , then you can see a few kind souls using ‘startx’

if you can do that you can use something like

https://www.reddit.com/r/linuxmasterrace/comments/56vwwz/curious_about_multiple_x_servers_running_on_the/

there may be a better way to do this on boot…

However, if the xserver nixos module could expose this easily, that would be rather cool. (it may actually do that).