@@ -3,9 +3,7 @@
33with lib;
44
55let
6−
7− prl-tools = config.boot.kernelPackages.prl-tools;
8−
6+ prl-tools = config.hardware.parallels.package;
97in
108
119{
@@ -22,6 +20,26 @@ in
2220 '';
2321 };
2422
23+ autoMountShares = mkOption {
24+ type = types.bool;
25+ default = true;
26+ description = ''
27+ Control prlfsmountd service. When this service is running, shares can not be manually
28+ mounted through `mount -t prl_fs ...` as this service will remount and trample any set options.
29+ Recommended to enable for simple file sharing, but extended share use such as for code should
30+ disable this to manually mount shares.
31+ '';
32+ };
33+
34+ package = mkOption {
35+ type = types.package;
36+ default = config.boot.kernelPackages.prl-tools;
37+ defaultText = "config.boot.kernelPackages.prl-tools";
38+ example = literalExample "config.boot.kernelPackages.prl-tools";
39+ description = ''
40+ Defines which package to use for prl-tools. Override to change the version.
41+ '';
42+ };
2543 };
2644
2745 };
@@ -67,7 +85,7 @@ in
6785 };
6886 };
6987
70− systemd.services.prlfsmountd = {
88+ systemd.services.prlfsmountd = mkIf config.hardware.parallels.autoMountShares {
7189 description = "Parallels Shared Folders Daemon";
7290 wantedBy = [ "multi-user.target" ];
7391 serviceConfig = rec {