anchor.diff:        type = types.package;
         description = "Which package to use for the Nextcloud instance.";
         relatedPackages = [ "nextcloud20" "nextcloud21" "nextcloud22" ];
  +    };
  +    phpPackage = mkOption {
  +      type = types.package;
  +      relatedPackages = [ "php74" "php80" ];
  +      defaultText = "pkgs.php";
  +      description = ''
  +        PHP package to use for Nextcloud.
  +      '';
       };
   
       maxUploadSize = mkOption {
  
positive.code:   cfg = config.services.nextcloud;
    fpm = config.services.phpfpm.pools.nextcloud;
  
    phpPackage = pkgs.php74.buildEnv {
      extensions = { enabled, all }:
        (with all;
          enabled
  
negative.code:           else if versionOlder stateVersion "21.11" then nextcloud21
            else nextcloud22
          );
  
        services.nextcloud.phpPackage =
          if versionOlder cfg.package.version "21" then pkgs.php74
          else pkgs.php80;
      }
  
      { systemd.timers.nextcloud-cron = {
  