rtl: improve descriptions

Also move cl-rest to the bottom.
This commit is contained in:
Erik Arvstedt 2021-11-26 15:13:30 +01:00
parent bd275d3a9a
commit e44cd7ecdc
No known key found for this signature in database
GPG Key ID: 33312B944DD97846

View File

@ -23,12 +23,12 @@ let
clightning = mkOption { clightning = mkOption {
type = types.bool; type = types.bool;
default = false; default = false;
description = "Add a node interface for clightning."; description = "Enable the clightning node interface.";
}; };
lnd = mkOption { lnd = mkOption {
type = types.bool; type = types.bool;
default = false; default = false;
description = "Add a node interface for lnd."; description = "Enable the lnd node interface.";
}; };
reverseOrder = mkOption { reverseOrder = mkOption {
type = types.bool; type = types.bool;
@ -49,11 +49,25 @@ let
default = false; default = false;
description = "Enable the Night UI Theme."; description = "Enable the Night UI Theme.";
}; };
user = mkOption {
type = types.str;
default = "rtl";
description = "The user as which to run RTL.";
};
group = mkOption {
type = types.str;
default = cfg.user;
description = "The group as which to run RTL.";
};
cl-rest = { cl-rest = {
enable = mkOption { enable = mkOption {
readOnly = true;
type = types.bool; type = types.bool;
default = cfg.nodes.clightning; default = cfg.nodes.clightning;
description = "Enable c-lightning-REST server."; description = ''
Enable c-lightning-REST server. This service is required for
clightning support and is automatically enabled.
'';
}; };
address = mkOption { address = mkOption {
readOnly = true; readOnly = true;
@ -75,16 +89,6 @@ let
description = "Swagger API documentation server port."; description = "Swagger API documentation server port.";
}; };
}; };
user = mkOption {
type = types.str;
default = "rtl";
description = "The user as which to run RTL.";
};
group = mkOption {
type = types.str;
default = cfg.user;
description = "The group as which to run RTL.";
};
inherit (nbLib) enforceTor; inherit (nbLib) enforceTor;
}; };