diff options
author | Luke Adams <luke.adams@belljar.io> | 2018-01-19 22:41:25 -0600 |
---|---|---|
committer | Luke Adams <luke.adams@belljar.io> | 2018-03-01 16:36:37 -0600 |
commit | 2c5efdbec46ea4773a659261496a97cca54cbffc (patch) | |
tree | e456d476b62932c4693cc85174e568619c2b6b0f /nixos | |
parent | 786f4020129fe7329caf48d2d2a82b641041d448 (diff) | |
download | nixlib-2c5efdbec46ea4773a659261496a97cca54cbffc.tar nixlib-2c5efdbec46ea4773a659261496a97cca54cbffc.tar.gz nixlib-2c5efdbec46ea4773a659261496a97cca54cbffc.tar.bz2 nixlib-2c5efdbec46ea4773a659261496a97cca54cbffc.tar.lz nixlib-2c5efdbec46ea4773a659261496a97cca54cbffc.tar.xz nixlib-2c5efdbec46ea4773a659261496a97cca54cbffc.tar.zst nixlib-2c5efdbec46ea4773a659261496a97cca54cbffc.zip |
parallels: add `autoMountShares` option
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/virtualisation/parallels-guest.nix | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/nixos/modules/virtualisation/parallels-guest.nix b/nixos/modules/virtualisation/parallels-guest.nix index fc0409e9ec77..e3b28780ed6b 100644 --- a/nixos/modules/virtualisation/parallels-guest.nix +++ b/nixos/modules/virtualisation/parallels-guest.nix @@ -22,6 +22,16 @@ in ''; }; + autoMountShares = mkOption { + type = types.bool; + default = true; + description = '' + Control prlfsmountd service. When this service is running, shares can not be manually + mounted through `mount -t prl_fs ...` as this service will remount and trample any set options. + Recommended to enable for simple file sharing, but extended share use such as for code should + disable this to manually mount shares. + ''; + }; }; }; @@ -67,7 +77,7 @@ in }; }; - systemd.services.prlfsmountd = { + systemd.services.prlfsmountd = mkIf config.hardware.parallels.autoMountShares { description = "Parallels Shared Folders Daemon"; wantedBy = [ "multi-user.target" ]; serviceConfig = rec { |