From 6e4825cbda563913e700f690dc283c734cadb509 Mon Sep 17 00:00:00 2001 From: Sandro Date: Wed, 30 Nov 2022 14:27:48 +0100 Subject: [PATCH] Fix X11 socket symlink creation by updating the tmpfile.d rule to match the one created by upstream WSL --- modules/wsl-distro.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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.