anchor.diff:    };
   
     config = mkIf cfg.enable {
  +
  +    assertions = [
  +      {
  +        assertion = cfg.replicationSettings != {} -> elem "replication" cfg.builtinPlugins;
  +        message = "Gerrit replicationSettings require enabling the replication plugin";
  +      }
  +    ];
   
       services.gerrit.settings = {
         cache.directory = "/var/cache/gerrit";
  
positive.code: 
    gerritConfig = pkgs.writeText "gerrit.conf" (
      lib.generators.toGitINI cfg.settings
    );
  
    # Wrap the gerrit java with all the java options so it can be called
  
negative.code:         '';
        };
  
        replicationSettings = mkOption {
          type = gitIniType;
          default = {};
          description = ''
            Replication configuration. This will be generated to the
            <literal>etc/replication.config</literal> file.
          '';
        };
  
        plugins = mkOption {
          type = types.listOf types.package;
          default = [];
  