mirror of
https://github.com/fort-nix/nix-bitcoin.git
synced 2024-11-22 22:33:46 +03:00
clboss: add option for using custom package
This commit is contained in:
parent
447606efaf
commit
7914405ced
@ -12,11 +12,16 @@ let cfg = config.services.clightning.plugins.clboss; in
|
||||
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 {
|
||||
services.clightning.extraConfig = ''
|
||||
plugin=${config.nix-bitcoin.pkgs.clboss}/bin/clboss
|
||||
plugin=${cfg.package}/bin/clboss
|
||||
clboss-min-onchain=${toString cfg.min-onchain}
|
||||
'';
|
||||
systemd.services.clightning.path = [
|
||||
|
Loading…
Reference in New Issue
Block a user