From 7914405cede7acd6dab53f3e7965557b6d6c8636 Mon Sep 17 00:00:00 2001 From: Jonas Nick Date: Sun, 11 Apr 2021 12:40:37 +0000 Subject: [PATCH] clboss: add option for using custom package --- modules/clightning-plugins/clboss.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/clightning-plugins/clboss.nix b/modules/clightning-plugins/clboss.nix index 5a01a20..c50c85e 100644 --- a/modules/clightning-plugins/clboss.nix +++ b/modules/clightning-plugins/clboss.nix @@ -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 = [