mirror of
https://github.com/fort-nix/nix-bitcoin.git
synced 2024-11-22 22:33:46 +03:00
clightning-plugins: remove unmaintained summary plugin
This commit is contained in:
parent
24bc983363
commit
b27078efa5
@ -76,7 +76,6 @@ NixOS modules ([src](modules/modules.nix))
|
||||
* [currencyrate](https://github.com/lightningd/plugins/tree/master/currencyrate): currency converter
|
||||
* [monitor](https://github.com/lightningd/plugins/tree/master/monitor): helps you analyze the health of your peers and channels
|
||||
* [rebalance](https://github.com/lightningd/plugins/tree/master/rebalance): keeps your channels balanced
|
||||
* [summary](https://github.com/lightningd/plugins/tree/master/summary): print a nice summary of the node status
|
||||
* [trustedcoin](https://github.com/nbd-wtf/trustedcoin) ([experimental](docs/services.md#trustedcoin)): replaces bitcoind with trusted public explorers
|
||||
* [zmq](https://github.com/lightningd/plugins/tree/master/zmq): publishes notifications via ZeroMQ to configured endpoints
|
||||
* [clightning-rest](https://github.com/Ride-The-Lightning/c-lightning-REST): REST server for clightning
|
||||
|
@ -14,7 +14,6 @@ in {
|
||||
imports = [
|
||||
./clboss.nix
|
||||
./feeadjuster.nix
|
||||
./summary.nix
|
||||
./trustedcoin.nix
|
||||
./zmq.nix
|
||||
];
|
||||
|
@ -1,39 +0,0 @@
|
||||
{ config, lib, ... }:
|
||||
|
||||
with lib;
|
||||
let cfg = config.services.clightning.plugins.summary; in
|
||||
{
|
||||
options.services.clightning.plugins.summary = {
|
||||
enable = mkEnableOption "Summary (clightning plugin)";
|
||||
currency = mkOption {
|
||||
type = types.str;
|
||||
default = "USD";
|
||||
description = mdDoc "The currency to look up on btcaverage.";
|
||||
};
|
||||
currencyPrefix = mkOption {
|
||||
type = types.str;
|
||||
default = "USD $";
|
||||
description = mdDoc "The prefix to use for the currency.";
|
||||
};
|
||||
availabilityInterval = mkOption {
|
||||
type = types.int;
|
||||
default = 300;
|
||||
description = mdDoc "How often in seconds the availability should be calculated.";
|
||||
};
|
||||
availabilityWindow = mkOption {
|
||||
type = types.int;
|
||||
default = 72;
|
||||
description = mdDoc "How many hours the availability should be averaged over.";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.clightning.extraConfig = ''
|
||||
plugin=${config.nix-bitcoin.pkgs.clightning-plugins.summary.path}
|
||||
summary-currency="${cfg.currency}"
|
||||
summary-currency-prefix="${cfg.currencyPrefix}"
|
||||
summary-availability-interval=${toString cfg.availabilityInterval}
|
||||
summary-availability-window=${toString cfg.availabilityWindow}
|
||||
'';
|
||||
};
|
||||
}
|
@ -27,10 +27,6 @@ let
|
||||
rebalance = {
|
||||
description = "Keeps your channels balanced";
|
||||
};
|
||||
summary = {
|
||||
description = "Prints a summary of the node status";
|
||||
extraPkgs = [ packaging requests ];
|
||||
};
|
||||
zmq = {
|
||||
description = "Publishes notifications via ZeroMQ to configured endpoints";
|
||||
scriptName = "cl-zmq";
|
||||
|
@ -154,7 +154,6 @@ let
|
||||
feeadjuster.enable = true;
|
||||
monitor.enable = true;
|
||||
rebalance.enable = true;
|
||||
summary.enable = true;
|
||||
zmq = let tcpEndpoint = "tcp://127.0.0.1:5501"; in {
|
||||
enable = true;
|
||||
channel-opened = tcpEndpoint;
|
||||
|
Loading…
Reference in New Issue
Block a user