diff --git a/modules/wsl-distro.nix b/modules/wsl-distro.nix index 9811c701..b7ccb341 100644 --- a/modules/wsl-distro.nix +++ b/modules/wsl-distro.nix @@ -115,8 +115,9 @@ with lib; { }; tmpfiles.rules = [ - # Don't remove the X11 socket - "d /tmp/.X11-unix 1777 root root" + # copied from /run/tmpfiles.d/wsl.conf + # Note: This file is generated by WSL to prevent systemd-tmpfiles from removing /tmp/.X11-unix during boot. + "L /tmp/.X11-unix - - - - /mnt/wslg/.X11-unix" ]; # Don't allow emergency mode, because we don't have a console.