From e44cd7ecdc7ae72cf7256d01bdf4efbf9d06f417 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Fri, 26 Nov 2021 15:13:30 +0100 Subject: [PATCH] rtl: improve descriptions Also move cl-rest to the bottom. --- modules/rtl.nix | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/modules/rtl.nix b/modules/rtl.nix index 70797f1..4d44310 100644 --- a/modules/rtl.nix +++ b/modules/rtl.nix @@ -23,12 +23,12 @@ let clightning = mkOption { type = types.bool; default = false; - description = "Add a node interface for clightning."; + description = "Enable the clightning node interface."; }; lnd = mkOption { type = types.bool; default = false; - description = "Add a node interface for lnd."; + description = "Enable the lnd node interface."; }; reverseOrder = mkOption { type = types.bool; @@ -49,11 +49,25 @@ let default = false; 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 = { enable = mkOption { + readOnly = true; type = types.bool; 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 { readOnly = true; @@ -75,16 +89,6 @@ let 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; };