Merge pull request #142408 from mschwaig/fix-vmware-guest-headless
nixos/vmware-guest: fix headless option
commitce21576c6134cf7381556df7c83e63fdc68b7e71
authorajs124 <ajs124@users.noreply.github.com>
dateFri 5 Nov 2021, 12:33 (5 years ago)
parent0f60c4560369bb
nixos/modules/virtualisation/vmware-guest.nix+3−3
@@ -38,7 +38,7 @@ in
3838 };
3939
4040 # Mount the vmblock for drag-and-drop and copy-and-paste.
41− systemd.mounts = [
41+ systemd.mounts = mkIf (!cfg.headless) [
4242 {
4343 description = "VMware vmblock fuse mount";
4444 documentation = [ "https://github.com/vmware/open-vm-tools/blob/master/open-vm-tools/vmblock-fuse/design.txt" ];
@@ -52,8 +52,8 @@ in
5252 }
5353 ];
5454
55− security.wrappers.vmware-user-suid-wrapper =
56− { setuid = true;
55+ security.wrappers.vmware-user-suid-wrapper = mkIf (!cfg.headless) {
56+ setuid = true;
5757 owner = "root";
5858 group = "root";
5959 source = "${open-vm-tools}/bin/vmware-user-suid-wrapper";