anchor.diff:    };
   
     dbOptions = {
  -    type = mkOption {
  -      description = "Rippled database type.";
  -      type = types.enum ["rocksdb" "nudb"];
  -      default = "rocksdb";
  -    };
  -
  -    path = mkOption {
  -      description = "Location to store the database.";
  -      type = types.path;
  -      default = cfg.databasePath;
  -    };
  -
  -    compression = mkOption {
  -      description = "Whether to enable snappy compression.";
  -      type = types.nullOr types.bool;
  -      default = null;
  -    };
  -
  -    onlineDelete = mkOption {
  -      description = "Enable automatic purging of older ledger information.";
  -      type = types.addCheck (types.nullOr types.int) (v: v > 256);
  -      default = cfg.ledgerHistory;
  -    };
  -
  -    advisoryDelete = mkOption {
  -      description = ''
  -	If set, then require administrative RPC call "can_delete"
  -	to enable online deletion of ledger records.
  -      '';
  -      type = types.nullOr types.bool;
  -      default = null;
  -    };
  -
  -    extraOpts = mkOption {
  -      description = "Extra database options.";
  -      type = types.lines;
  -      default = "";
  +    options = {
  +      type = mkOption {
  +        description = "Rippled database type.";
  +        type = types.enum ["rocksdb" "nudb"];
  +        default = "rocksdb";
  +      };
  +
  +      path = mkOption {
  +        description = "Location to store the database.";
  +        type = types.path;
  +        default = cfg.databasePath;
  +      };
  +
  +      compression = mkOption {
  +        description = "Whether to enable snappy compression.";
  +        type = types.nullOr types.bool;
  +        default = null;
  +      };
  +
  +      onlineDelete = mkOption {
  +        description = "Enable automatic purging of older ledger information.";
  +        type = types.addCheck (types.nullOr types.int) (v: v > 256);
  +        default = cfg.ledgerHistory;
  +      };
  +
  +      advisoryDelete = mkOption {
  +        description = ''
  +	        If set, then require administrative RPC call "can_delete"
  +	        to enable online deletion of ledger records.
  +        '';
  +        type = types.nullOr types.bool;
  +        default = null;
  +      };
  +
  +      extraOpts = mkOption {
  +        description = "Extra database options.";
  +        type = types.lines;
  +        default = "";
  +      };
       };
     };
   
  
positive.code: 
        nodeDb = mkOption {
  	description = "Rippled main database options.";
  	type = types.nullOr types.optionSet;
  	options = dbOptions;
  	default = {
  	  type = "rocksdb";
  	  extraOpts = ''
  
negative.code: 
        tempDb = mkOption {
  	description = "Rippled temporary database options.";
  	type = with types; nullOr (submodule dbOptions);
  	default = null;
        };
  
        importDb = mkOption {
  	description = "Settings for performing a one-time import.";
  	type = with types; nullOr (submodule dbOptions);
  	default = null;
        };
  
  