anchor.diff:            script = ''
               chmod og+x ${cfg.home}
               ln -sf ${cfg.package}/apps ${cfg.home}/
  -            install -o ${cfg.user} -g ${group} -d ${cfg.home}/config ${cfg.home}/data ${cfg.home}/store-apps
  +            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
  
positive.code:       description = "Which package to use for the Nextcloud instance.";
        relatedPackages = [ "nextcloud17" "nextcloud18" "nextcloud19" ];
      };
      user = mkOption {
        type = types.str;
        default = "nextcloud";
        description = "User of the nextcloud service";
      };
      group = mkOption {
        type = with types; nullOr str;
        description = ''
          Set group for nextcloud related services.
          This option cannot be used if <xref linkend="opt-services.nextcloud.nginx.enable"/> is set.
          In this case <xref linkend="opt-services.nginx.group"/> is used instead.";
        '';
      };
  
      maxUploadSize = mkOption {
  
negative.code:             PATH = "/run/wrappers/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:/usr/bin:/bin";
            };
            settings = mapAttrs (name: mkDefault) {
              "listen.owner" = serverUser;
              "listen.group" = config.users.users.${serverUser}.group;
            } // cfg.poolSettings;
            extraConfig = cfg.poolConfig;
          };
        };
  
        users.users.nextcloud = {
          home = "${cfg.home}";
          group = "nextcloud";
          createHome = true;
        };
        users.groups.nextcloud.members = [ "nextcloud" "${serverUser}" ];
  
        environment.systemPackages = [ occ ];
      }
  