clightning-plugins: remove unmaintained summary plugin
This commit is contained in:
parent
24bc983363
commit
b27078efa5
5 changed files with 0 additions and 46 deletions
|
|
@ -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}
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue