From 7d1797cec7a314342b6988d3d635955eb8b3cff2 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Mon, 28 Sep 2020 13:09:07 +0200 Subject: [PATCH] clightning: add option 'extraConfig' --- modules/clightning.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/clightning.nix b/modules/clightning.nix index 1e654ee..50dc7c0 100644 --- a/modules/clightning.nix +++ b/modules/clightning.nix @@ -15,6 +15,7 @@ let ${optionalString (cfg.bitcoin-rpcconnect != null) "bitcoin-rpcconnect=${cfg.bitcoin-rpcconnect}"} bitcoin-rpcuser=${config.services.bitcoind.rpc.users.public.name} rpc-file-mode=0660 + ${cfg.extraConfig} ''; in { options.services.clightning = { @@ -70,6 +71,11 @@ in { default = "/var/lib/clightning"; description = "The data directory for clightning."; }; + extraConfig = mkOption { + type = types.lines; + default = ""; + description = "Additional lines appended to the config file."; + }; user = mkOption { type = types.str; default = "clightning";