From 562aa055eec40edccc4e263fac4f761025f032fe Mon Sep 17 00:00:00 2001 From: nzbr Date: Sat, 13 Apr 2024 02:37:25 +0200 Subject: [PATCH] fix: prevent systemd from hiding wayland socket Co-authored-by: --- modules/wsl-distro.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/wsl-distro.nix b/modules/wsl-distro.nix index df7fcc80..2b0ed4ff 100644 --- a/modules/wsl-distro.nix +++ b/modules/wsl-distro.nix @@ -135,6 +135,12 @@ in }; }; + # Prevent systemd from mounting a tmpfs over the runtime dir (and thus hiding the wayland socket) + systemd.services."user-runtime-dir@" = { + overrideStrategy = "asDropin"; + unitConfig.ConditionPathExists = "!/run/user/%i"; + }; + # dhcp is handled by windows networking.dhcpcd.enable = false;