anchor.diff:            false.
           '';
         };
  +
  +      package = mkOption {
  +        type = types.package;
  +        default = pkgs.plex;
  +        description = ''
  +          The Plex package to use. Plex subscribers may wish to use their own
  +          package here, pointing to subscriber-only server versions.
  +        '';
  +      };
       };
     };
   
  
positive.code:         User = cfg.user;
          Group = cfg.group;
          PermissionsStartOnly = "true";
          ExecStart = "/bin/sh -c '${plex}/usr/lib/plexmediaserver/Plex\\ Media\\ Server'";
        };
        environment = {
          PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=cfg.dataDir;
          PLEX_MEDIA_SERVER_HOME="${plex}/usr/lib/plexmediaserver";
          PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS="6";
          PLEX_MEDIA_SERVER_TMPDIR="/tmp";
          LD_LIBRARY_PATH="${plex}/usr/lib/plexmediaserver";
          LC_ALL="en_US.UTF-8";
          LANG="en_US.UTF-8";
        };
  
negative.code:         # why this is done.
          test -d "${cfg.dataDir}/.skeleton" || mkdir "${cfg.dataDir}/.skeleton"
          for db in "com.plexapp.plugins.library.db"; do
              cp "${cfg.package}/usr/lib/plexmediaserver/Resources/base_$db" "${cfg.dataDir}/.skeleton/$db"
              chmod u+w "${cfg.dataDir}/.skeleton/$db"
              chown ${cfg.user}:${cfg.group} "${cfg.dataDir}/.skeleton/$db"
          done
  