Unverified Commit d26ef0c0 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

nixos/parallels-guest: fix prltoolsd on NixOS for Parallels 26+ (#513034)

parents ae05ea62 d554c58f
Loading
Loading
Loading
Loading
+15 −1
Original line number Diff line number Diff line
@@ -47,10 +47,24 @@ in

    services.timesyncd.enable = false;

    # Parallels Desktop 26+ mounts shared folders under /mnt/psf by default.
    # prltoolsd tries to create subdirectories there at runtime, which fails
    # if /mnt/psf does not exist. Create it declaratively via tmpfiles.
    systemd.tmpfiles.rules = [
      "d /mnt/psf 0755 root root - -"
    ];

    systemd.services.prltoolsd = {
      description = "Parallels Tools Service";
      wantedBy = [ "multi-user.target" ];
      path = [ prl-tools ];
      # prltoolsd mount scripts invoke coreutils (tail, mkdir, chmod)
      # and gnused (sed) without inheriting the service PATH in all
      # code paths. Make them available alongside prl-tools.
      path = [
        prl-tools
        pkgs.coreutils
        pkgs.gnused
      ];
      serviceConfig = {
        ExecStart = "${prl-tools}/bin/prltoolsd -f";
        PIDFile = "/var/run/prltoolsd.pid";