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: let
    cfg = config.services.nextcloud;
    fpm = config.services.phpfpm.pools.nextcloud;
  
    phpPackage = cfg.phpPackage.buildEnv {
      extensions = { enabled, all }:
  
negative.code:           group = "nextcloud";
            phpPackage = phpPackage;
            phpEnv = {
              NEXTCLOUD_CONFIG_DIR = "${datadir}/config";
              PATH = "/run/wrappers/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:/usr/bin:/bin";
            };
            settings = mapAttrs (name: mkDefault) {
  