[Question] Is it possible to not mount the home directory but still have access to the X/wayland sockets?
Distrobox has been extremely useful for me running on NixOS. I run my host on NixOS and then do all my C++ development inside an Ubuntu dbox. This has been working like a charm!
I've been recently trying to experiment with a way to run a distrobox but isolate my home folder from it, but still have access to the X/wayland socket. I tried modifying distro-create to not mount $HOME, but instead mount some other location (--volume /tmp/temp_home:$HOME), thereby giving me an empty home directory inside the container. I also mounted the .XAuthority file at another location /Xauthority and set the XAUTHORITY=/Xauthority appropriately.
Unfortunately, this didn't work, it keeps giving me authorization errors when trying to open apps that try to draw windows. I'm not an expert is dealing with the xserver, and chatGPT didn't come up with any solutions that worked.
I know this is not what distrobox was intended for, and I don't expect any features added to support this, but I was hoping someone could shed some light on how I could get this to work for myself my modifying the source code.