···
158
-
description = "Rippled database type.";
159
-
type = types.enum ["rocksdb" "nudb"];
160
-
default = "rocksdb";
159
+
description = "Rippled database type.";
160
+
type = types.enum ["rocksdb" "nudb"];
161
+
default = "rocksdb";
164
-
description = "Location to store the database.";
166
-
default = cfg.databasePath;
165
+
description = "Location to store the database.";
167
+
default = cfg.databasePath;
169
-
compression = mkOption {
170
-
description = "Whether to enable snappy compression.";
171
-
type = types.nullOr types.bool;
170
+
compression = mkOption {
171
+
description = "Whether to enable snappy compression.";
172
+
type = types.nullOr types.bool;
175
-
onlineDelete = mkOption {
176
-
description = "Enable automatic purging of older ledger information.";
177
-
type = types.addCheck (types.nullOr types.int) (v: v > 256);
178
-
default = cfg.ledgerHistory;
176
+
onlineDelete = mkOption {
177
+
description = "Enable automatic purging of older ledger information.";
178
+
type = types.addCheck (types.nullOr types.int) (v: v > 256);
179
+
default = cfg.ledgerHistory;
181
-
advisoryDelete = mkOption {
183
-
If set, then require administrative RPC call "can_delete"
184
-
to enable online deletion of ledger records.
186
-
type = types.nullOr types.bool;
182
+
advisoryDelete = mkOption {
184
+
If set, then require administrative RPC call "can_delete"
185
+
to enable online deletion of ledger records.
187
+
type = types.nullOr types.bool;
190
-
extraOpts = mkOption {
191
-
description = "Extra database options.";
192
-
type = types.lines;
191
+
extraOpts = mkOption {
192
+
description = "Extra database options.";
193
+
type = types.lines;
···
description = "Ports exposed by rippled";
216
-
type = types.attrsOf types.optionSet;
217
-
options = [portOptions];
218
+
type = with types; attrsOf (submodule portOptions);
···
description = "Rippled main database options.";
241
-
type = types.nullOr types.optionSet;
242
-
options = dbOptions;
242
+
type = with types; nullOr (submodule dbOptions);
···
description = "Rippled temporary database options.";
257
-
type = types.nullOr types.optionSet;
258
-
options = dbOptions;
257
+
type = with types; nullOr (submodule dbOptions);
description = "Settings for performing a one-time import.";
264
-
type = types.nullOr types.optionSet;
265
-
options = dbOptions;
263
+
type = with types; nullOr (submodule dbOptions);