parallels: add `autoMountShares` option

+11 -1
+11 -1
nixos/modules/virtualisation/parallels-guest.nix
··· 22 22 ''; 23 23 }; 24 24 25 + autoMountShares = mkOption { 26 + type = types.bool; 27 + default = true; 28 + description = '' 29 + Control prlfsmountd service. When this service is running, shares can not be manually 30 + mounted through `mount -t prl_fs ...` as this service will remount and trample any set options. 31 + Recommended to enable for simple file sharing, but extended share use such as for code should 32 + disable this to manually mount shares. 33 + ''; 34 + }; 25 35 }; 26 36 27 37 }; ··· 67 77 }; 68 78 }; 69 79 70 - systemd.services.prlfsmountd = { 80 + systemd.services.prlfsmountd = mkIf config.hardware.parallels.autoMountShares { 71 81 description = "Parallels Shared Folders Daemon"; 72 82 wantedBy = [ "multi-user.target" ]; 73 83 serviceConfig = rec {