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 Dec 7, 2022
1 parent 2e1cbbb commit 631930e
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 @@ -119,8 +119,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 631930e

Please sign in to comment.