anchor.diff:  
               # create nextcloud directories.
               # if the directories exist already with wrong permissions, we fix that
  -            for dir in ${cfg.home}/config ${cfg.home}/data ${cfg.home}/store-apps; do
  +            for dir in ${datadir}/config ${datadir}/data ${cfg.home}/store-apps; do
                 if [ ! -e $dir ]; then
                   install -o nextcloud -g nextcloud -d $dir
                 elif [ $(stat -c "%G" $dir) != "nextcloud" ]; then
  
positive.code:               fi
              done
  
              ln -sf ${overrideConfig} ${cfg.home}/config/override.config.php
  
              # Do not install if already installed
              if [[ ! -e ${cfg.home}/config/config.php ]]; then
                ${occInstallCmd}
              fi
  
              ${occ}/bin/nextcloud-occ upgrade
  
              ${occ}/bin/nextcloud-occ config:system:delete trusted_domains
              ${occSetTrustedDomainsCmd}
            '';
            serviceConfig.Type = "oneshot";
            serviceConfig.User = "nextcloud";
          };
          nextcloud-cron = {
            environment.NEXTCLOUD_CONFIG_DIR = "${cfg.home}/config";
            serviceConfig.Type = "oneshot";
            serviceConfig.User = "nextcloud";
            serviceConfig.ExecStart = "${phpPackage}/bin/php -f ${cfg.package}/cron.php";
  
negative.code:                 [ 'path' => '${cfg.home}/apps', 'url' => '/apps', 'writable' => false ],
                  [ 'path' => '${cfg.home}/store-apps', 'url' => '/store-apps', 'writable' => true ],
                ],
                'datadirectory' => '${datadir}/data',
                'skeletondirectory' => '${cfg.skeletonDirectory}',
                ${optionalString cfg.caching.apcu "'memcache.local' => '\\OC\\Memcache\\APCu',"}
                'log_type' => 'syslog',
  