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 c964d2e
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@1000".unitConfig.ConditionPathIsMountPoint = "!/run/user/%i";
"user@1000".after = [ "run-user-1000.mount" ];
};
})
];
}

0 comments on commit c964d2e

Please sign in to comment.