anchor.diff:      setupEnv = lib.concatStringsSep "\n" (mapAttrsToList (name: val: "export ${name}=\"${val}\"") env);
     in pkgs.writeShellScript "manage" ''
       ${setupEnv}
  -    exec ${cfg.package}/bin/paperless-ngx "$@"
  +    exec ${pkg}/bin/paperless-ngx "$@"
     '';
   
     # Secure the services
  
positive.code:       description = "Paperless document consumer";
        serviceConfig = defaultServiceConfig // {
          User = cfg.user;
          ExecStart = "${cfg.package}/bin/paperless-ngx document_consumer";
          Restart = "on-failure";
        };
        environment = env;
  
negative.code: with lib;
  let
    cfg = config.services.paperless;
    pkg = cfg.package;
  
    defaultUser = "paperless";
  
  