diff options
| author | K900 <me@0upti.me> | 2023-01-29 10:51:59 +0300 |
|---|---|---|
| committer | K900 <me@0upti.me> | 2023-01-29 10:54:00 +0300 |
| commit | bc2ee24d8bff8a4e8aedfdbda7ba1834499d56c9 (patch) | |
| tree | 9fbe69c4bc370e3808d7301d45a785134940f699 | |
| parent | 14273c185311868e8525a0af3b5c93503e0f53e8 (diff) | |
fix: relink the X11 socket into place if needed
Fixes X11 applications on tmp-as-tmpfs setups.
| -rw-r--r-- | modules/wsl-distro.nix | 4 |
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 |
