Skip to content

Commit

Permalink
Fix X11 socket symlink creation
Browse files Browse the repository at this point in the history
by updating the tmpfile.d rule to match the one created by upstream WSL
  • Loading branch information
SuperSandro2000 committed Nov 30, 2022
1 parent 2bb34d0 commit 6e4825c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/wsl-distro.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6e4825c

Please sign in to comment.