summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/wsl-distro.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/wsl-distro.nix b/modules/wsl-distro.nix
index e75e7f0..f20bb5b 100644
--- a/modules/wsl-distro.nix
+++ b/modules/wsl-distro.nix
@@ -124,6 +124,10 @@ with lib; {
# Don't allow emergency mode, because we don't have a console.
enableEmergencyMode = false;
+
+ # Link the X11 socket into place. This is a no-op on a normal setup,
+ # but helps if /tmp is a tmpfs or mounted from some other location.
+ tmpfiles.rules = [ "L /tmp/.X11-unix - - - - /mnt/wslg/.X11-unix" ];
};
# Start a systemd user session when starting a command through runuser