clboss: add option for using custom package

This commit is contained in:
Jonas Nick 2021-04-11 12:40:37 +00:00
parent 447606efaf
commit 7914405ced
No known key found for this signature in database
GPG Key ID: 4861DBF262123605
1 changed files with 6 additions and 1 deletions

View File

@ -12,11 +12,16 @@ let cfg = config.services.clightning.plugins.clboss; in
Specify target amount (in satoshi) that CLBOSS will leave onchain. Specify target amount (in satoshi) that CLBOSS will leave onchain.
''; '';
}; };
package = mkOption {
type = types.package;
default = config.nix-bitcoin.pkgs.clboss;
description = "The package providing clboss binaries.";
};
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
services.clightning.extraConfig = '' services.clightning.extraConfig = ''
plugin=${config.nix-bitcoin.pkgs.clboss}/bin/clboss plugin=${cfg.package}/bin/clboss
clboss-min-onchain=${toString cfg.min-onchain} clboss-min-onchain=${toString cfg.min-onchain}
''; '';
systemd.services.clightning.path = [ systemd.services.clightning.path = [