anchor.diff:              ${occSetTrustedDomainsCmd}
             '';
             serviceConfig.Type = "oneshot";
  +          serviceConfig.User = "nextcloud";
           };
           nextcloud-cron = {
             environment.NEXTCLOUD_CONFIG_DIR = "${cfg.home}/config";
             serviceConfig.Type = "oneshot";
  -          serviceConfig.User = cfg.user;
  +          serviceConfig.User = "nextcloud";
             serviceConfig.ExecStart = "${phpPackage}/bin/php -f ${cfg.package}/cron.php";
           };
           nextcloud-update-plugins = mkIf cfg.autoUpdateApps.enable {
             serviceConfig.Type = "oneshot";
             serviceConfig.ExecStart = "${occ}/bin/nextcloud-occ app:update --all";
  -          serviceConfig.User = cfg.user;
  +          serviceConfig.User = "nextcloud";
             startAt = cfg.autoUpdateApps.startAt;
           };
         };
   
         services.phpfpm = {
           pools.nextcloud = {
  -          user = cfg.user;
  -          inherit group;
  +          user = "nextcloud";
  +          group = "nextcloud";
             phpOptions = phpOptionsStr;
             phpPackage = phpPackage;
             phpEnv = {
  
positive.code:             && !(acfg.adminpass != null && acfg.adminpassFile != null));
            message = "Please specify exactly one of adminpass or adminpassFile";
          }
          { assertion = cfg.nginx.enable -> (group == config.services.nginx.group);
            message = "Nextcloud group cannot be set if nginx is used";
          }
        ];
  
  
negative.code:           script = ''
              chmod og+x ${cfg.home}
              ln -sf ${cfg.package}/apps ${cfg.home}/
              install -o nextcloud -g nextcloud -d ${cfg.home}/config ${cfg.home}/data ${cfg.home}/store-apps
              ln -sf ${overrideConfig} ${cfg.home}/config/override.config.php
  
              # Do not install if already installed
  