Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add option to disable wslg x11 mount #371

Merged
merged 2 commits into from
Jan 5, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion modules/systemd/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ with lib; {
default = true;
description = "Use native WSL systemd support";
};
wslgMountX11 = mkOption {
type = bool;
default = true;
description = "Mount the WSLg .X11-unix directory into /tmp";
};
};

config =
Expand Down Expand Up @@ -40,7 +45,7 @@ with lib; {

# Link the X11 socket into place. This is a no-op on a normal setup,
# but helps if /tmp is a tmpfs or mounted from some other location.
tmpfiles.rules = [ "L /tmp/.X11-unix - - - - ${cfg.wslConf.automount.root}/wslg/.X11-unix" ];
tmpfiles.rules = mkIf cfg.wslgMountX11 ([ "L /tmp/.X11-unix - - - - ${cfg.wslConf.automount.root}/wslg/.X11-unix" ]);
nzbr marked this conversation as resolved.
Show resolved Hide resolved
};

};
Expand Down
Loading