···33with lib;
4455let
66-77- prl-tools = config.boot.kernelPackages.prl-tools;
88-66+ prl-tools = config.hardware.parallels.package;
97in
108119{
···2220 '';
2321 };
24222323+ autoMountShares = mkOption {
2424+ type = types.bool;
2525+ default = true;
2626+ description = ''
2727+ Control prlfsmountd service. When this service is running, shares can not be manually
2828+ mounted through `mount -t prl_fs ...` as this service will remount and trample any set options.
2929+ Recommended to enable for simple file sharing, but extended share use such as for code should
3030+ disable this to manually mount shares.
3131+ '';
3232+ };
3333+3434+ package = mkOption {
3535+ type = types.package;
3636+ default = config.boot.kernelPackages.prl-tools;
3737+ defaultText = "config.boot.kernelPackages.prl-tools";
3838+ example = literalExample "config.boot.kernelPackages.prl-tools";
3939+ description = ''
4040+ Defines which package to use for prl-tools. Override to change the version.
4141+ '';
4242+ };
2543 };
26442745 };
···6785 };
6886 };
69877070- systemd.services.prlfsmountd = {
8888+ systemd.services.prlfsmountd = mkIf config.hardware.parallels.autoMountShares {
7189 description = "Parallels Shared Folders Daemon";
7290 wantedBy = [ "multi-user.target" ];
7391 serviceConfig = rec {