Skip to content

Commit

Permalink
fix(native-systemd): work around wsl stomping on XDG_RUNTIME_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
K900 committed Oct 5, 2022
1 parent 0878d62 commit 158f35a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/wsl-distro.nix
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,12 @@ with builtins; with lib;
''}
'';
};

# work around https://github.com/microsoft/WSL/issues/8918
systemd.services = {
"user-runtime-dir@".unitConfig.ConditionPathIsMountPoint = "!/run/user/%i";
"user@".after = [ "run-user-1000.mount" ];
};
})
];
}

0 comments on commit 158f35a

Please sign in to comment.