rippled module: optionSet -> submodule
This commit is contained in:
parent
c1cad56c6e
commit
ef04462ea9
|
@ -154,6 +154,7 @@ let
|
||||||
};
|
};
|
||||||
|
|
||||||
dbOptions = {
|
dbOptions = {
|
||||||
|
options = {
|
||||||
type = mkOption {
|
type = mkOption {
|
||||||
description = "Rippled database type.";
|
description = "Rippled database type.";
|
||||||
type = types.enum ["rocksdb" "nudb"];
|
type = types.enum ["rocksdb" "nudb"];
|
||||||
|
@ -193,6 +194,7 @@ let
|
||||||
default = "";
|
default = "";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
|
@ -213,8 +215,7 @@ in
|
||||||
|
|
||||||
ports = mkOption {
|
ports = mkOption {
|
||||||
description = "Ports exposed by rippled";
|
description = "Ports exposed by rippled";
|
||||||
type = types.attrsOf types.optionSet;
|
type = with types; attrsOf (submodule portOptions);
|
||||||
options = [portOptions];
|
|
||||||
default = {
|
default = {
|
||||||
rpc = {
|
rpc = {
|
||||||
port = 5005;
|
port = 5005;
|
||||||
|
@ -238,8 +239,7 @@ in
|
||||||
|
|
||||||
nodeDb = mkOption {
|
nodeDb = mkOption {
|
||||||
description = "Rippled main database options.";
|
description = "Rippled main database options.";
|
||||||
type = types.nullOr types.optionSet;
|
type = with types; nullOr (submodule dbOptions);
|
||||||
options = dbOptions;
|
|
||||||
default = {
|
default = {
|
||||||
type = "rocksdb";
|
type = "rocksdb";
|
||||||
extraOpts = ''
|
extraOpts = ''
|
||||||
|
@ -254,15 +254,13 @@ in
|
||||||
|
|
||||||
tempDb = mkOption {
|
tempDb = mkOption {
|
||||||
description = "Rippled temporary database options.";
|
description = "Rippled temporary database options.";
|
||||||
type = types.nullOr types.optionSet;
|
type = with types; nullOr (submodule dbOptions);
|
||||||
options = dbOptions;
|
|
||||||
default = null;
|
default = null;
|
||||||
};
|
};
|
||||||
|
|
||||||
importDb = mkOption {
|
importDb = mkOption {
|
||||||
description = "Settings for performing a one-time import.";
|
description = "Settings for performing a one-time import.";
|
||||||
type = types.nullOr types.optionSet;
|
type = with types; nullOr (submodule dbOptions);
|
||||||
options = dbOptions;
|
|
||||||
default = null;
|
default = null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue