···3with lib;
45let
6+ prl-tools = config.hardware.parallels.package;
007in
89{
···20 '';
21 };
2223+ 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+ };
43 };
4445 };
···85 };
86 };
8788+ systemd.services.prlfsmountd = mkIf config.hardware.parallels.autoMountShares {
89 description = "Parallels Shared Folders Daemon";
90 wantedBy = [ "multi-user.target" ];
91 serviceConfig = rec {