clightning: add option useBcliPlugin

This decouples modules `clightning` and `trustedcoin`.
`clightning` no longer depends on `trustedcoin`, which restores
the acyclic dependency graph described in `modules.nix`
This commit is contained in:
Erik Arvstedt
2023-08-03 00:05:03 +02:00
parent f3e9c644e3
commit 31b76f1ffe
2 changed files with 22 additions and 5 deletions

View File

@@ -14,10 +14,12 @@ let cfg = config.services.clightning.plugins.trustedcoin; in
};
config = mkIf cfg.enable {
services.clightning.extraConfig = ''
plugin=${cfg.package}/bin/trustedcoin
disable-plugin=bcli
'';
services.clightning = {
useBcliPlugin = false;
extraConfig = ''
plugin=${cfg.package}/bin/trustedcoin
'';
};
# Trustedcoin does not honor the clightning's proxy configuration.
# Ref.: https://github.com/nbd-wtf/trustedcoin/pull/19