From c964d2e8c43bd566de431d89bb14c790d85a7786 Mon Sep 17 00:00:00 2001 From: K900 Date: Wed, 5 Oct 2022 21:08:46 +0300 Subject: [PATCH] fix(native-systemd): work around wsl stomping on XDG_RUNTIME_DIR --- modules/wsl-distro.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/wsl-distro.nix b/modules/wsl-distro.nix index 3fec95d4..55bd5c84 100644 --- a/modules/wsl-distro.nix +++ b/modules/wsl-distro.nix @@ -170,6 +170,12 @@ with builtins; with lib; ''} ''; }; + + # work around https://github.com/microsoft/WSL/issues/8918 + systemd.services = { + "user-runtime-dir@1000".unitConfig.ConditionPathIsMountPoint = "!/run/user/%i"; + "user@1000".after = [ "run-user-1000.mount" ]; + }; }) ]; }