mirror of
https://github.com/fort-nix/nix-bitcoin.git
synced 2024-11-23 06:42:51 +03:00
623c238b16
clightning 0.12.0 ships with a reimplementation of the commando plugin that is incompatible with the commando module that existed in nix-bitcoin.
34 lines
971 B
Nix
34 lines
971 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
let
|
|
options.services.clightning.plugins = {
|
|
currencyrate.enable = mkEnableOption "Currencyrate (clightning plugin)";
|
|
helpme.enable = mkEnableOption "Help me (clightning plugin)";
|
|
monitor.enable = mkEnableOption "Monitor (clightning plugin)";
|
|
rebalance.enable = mkEnableOption "Rebalance (clightning plugin)";
|
|
};
|
|
|
|
cfg = config.services.clightning.plugins;
|
|
pluginPkgs = config.nix-bitcoin.pkgs.clightning-plugins;
|
|
in {
|
|
imports = [
|
|
./clboss.nix
|
|
./feeadjuster.nix
|
|
./prometheus.nix
|
|
./summary.nix
|
|
./zmq.nix
|
|
];
|
|
|
|
inherit options;
|
|
|
|
config = {
|
|
services.clightning.extraConfig = mkMerge [
|
|
(mkIf cfg.currencyrate.enable "plugin=${pluginPkgs.currencyrate.path}")
|
|
(mkIf cfg.helpme.enable "plugin=${pluginPkgs.helpme.path}")
|
|
(mkIf cfg.monitor.enable "plugin=${pluginPkgs.monitor.path}")
|
|
(mkIf cfg.rebalance.enable "plugin=${pluginPkgs.rebalance.path}")
|
|
];
|
|
};
|
|
}
|