anchor.diff:              '';
             };
           };
  -      in mkOption {
  -        type = types.nullOr (types.submodule {
  -          options = {
  -            s3 = mkOption {
  -              type = types.submodule {
  -                options = {
  -                  enable = mkEnableOption "S3 object storage as primary storage.";
  -                  arguments = mkOption {
  -                    type = types.submodule {
  -                      options = s3Arguments;
  -                    };
  -                    description = ''
  -                      Configuration arguments for the object storage.
  -                    '';
  -                  };
  -                };
  -              };
  -              description = ''
  -                Mounts a bucket on an Amazon S3 object storage or compatible
  -                implementation into the virtual filesystem.
  -              '';
  -            };
  -          };
  -        });
  -        default = null;
  -        description = ''
  -          Options for configuring object storage as nextcloud's primary storage.
  -
  -          See nextcloud's documentation on "Object Storage as Primary Storage"
  -          for details on how to select the right class and argument set for
  -          your needs.
  -        '';
         };
       };
   
  
positive.code:         '';
        };
  
        objectstore = let
          s3Arguments = {
            bucket = mkOption {
              type = types.str;
              example = "nextcloud";
  
negative.code:         }
          { assertion = versionOlder cfg.package.version "21" -> cfg.config.defaultPhoneRegion == null;
            message = "The `defaultPhoneRegion'-setting is only supported for Nextcloud >=21!";
          }
        ];
  
  