clightning: add option 'extraConfig'

This commit is contained in:
Erik Arvstedt 2020-09-28 13:09:07 +02:00
parent e0117d56d1
commit 7d1797cec7
No known key found for this signature in database
GPG Key ID: 33312B944DD97846

View File

@ -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";