Merge fort-nix/nix-bitcoin#525: clightning: add currencyrate plugin
e3c54aa64e
clightning: add currencyrate plugin (William Casarin)31af0df05b
clightning-plugins: bump (William Casarin) Pull request description: ACKs for top commit: erikarvstedt: ACKe3c54aa64e
Tree-SHA512: f22378368fd67d9c54d94c0cf264d9bac43b0ef752d156bff1f5c333867ef8aacb6f3961df62ccf8822b4b4d14c3a05f27c5a72552dc5465788384ac768b83ee
This commit is contained in:
commit
8e7bd323b7
@ -70,6 +70,7 @@ NixOS modules ([src](modules/modules.nix))
|
|||||||
Available plugins:
|
Available plugins:
|
||||||
* [clboss](https://github.com/ZmnSCPxj/clboss): automated C-Lightning Node Manager
|
* [clboss](https://github.com/ZmnSCPxj/clboss): automated C-Lightning Node Manager
|
||||||
* [commando](https://github.com/lightningd/plugins/tree/master/commando): control your node over lightning
|
* [commando](https://github.com/lightningd/plugins/tree/master/commando): control your node over lightning
|
||||||
|
* [currencyrate](https://github.com/lightningd/plugins/tree/master/currencyrate): currency converter
|
||||||
* [helpme](https://github.com/lightningd/plugins/tree/master/helpme): walks you through setting up a fresh c-lightning node
|
* [helpme](https://github.com/lightningd/plugins/tree/master/helpme): walks you through setting up a fresh c-lightning node
|
||||||
* [monitor](https://github.com/lightningd/plugins/tree/master/monitor): helps you analyze the health of your peers and channels
|
* [monitor](https://github.com/lightningd/plugins/tree/master/monitor): helps you analyze the health of your peers and channels
|
||||||
* [prometheus](https://github.com/lightningd/plugins/tree/master/prometheus): lightning node exporter for the prometheus timeseries server
|
* [prometheus](https://github.com/lightningd/plugins/tree/master/prometheus): lightning node exporter for the prometheus timeseries server
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
options.services.clightning.plugins = {
|
options.services.clightning.plugins = {
|
||||||
|
currencyrate.enable = mkEnableOption "Currencyrate (clightning plugin)";
|
||||||
helpme.enable = mkEnableOption "Help me (clightning plugin)";
|
helpme.enable = mkEnableOption "Help me (clightning plugin)";
|
||||||
monitor.enable = mkEnableOption "Monitor (clightning plugin)";
|
monitor.enable = mkEnableOption "Monitor (clightning plugin)";
|
||||||
rebalance.enable = mkEnableOption "Rebalance (clightning plugin)";
|
rebalance.enable = mkEnableOption "Rebalance (clightning plugin)";
|
||||||
@ -24,6 +25,7 @@ in {
|
|||||||
|
|
||||||
config = {
|
config = {
|
||||||
services.clightning.extraConfig = mkMerge [
|
services.clightning.extraConfig = mkMerge [
|
||||||
|
(mkIf cfg.currencyrate.enable "plugin=${pluginPkgs.currencyrate.path}")
|
||||||
(mkIf cfg.helpme.enable "plugin=${pluginPkgs.helpme.path}")
|
(mkIf cfg.helpme.enable "plugin=${pluginPkgs.helpme.path}")
|
||||||
(mkIf cfg.monitor.enable "plugin=${pluginPkgs.monitor.path}")
|
(mkIf cfg.monitor.enable "plugin=${pluginPkgs.monitor.path}")
|
||||||
(mkIf cfg.rebalance.enable "plugin=${pluginPkgs.rebalance.path}")
|
(mkIf cfg.rebalance.enable "plugin=${pluginPkgs.rebalance.path}")
|
||||||
|
@ -6,8 +6,8 @@ let
|
|||||||
src = pkgs.fetchFromGitHub {
|
src = pkgs.fetchFromGitHub {
|
||||||
owner = "lightningd";
|
owner = "lightningd";
|
||||||
repo = "plugins";
|
repo = "plugins";
|
||||||
rev = "7ef9e6c172c0bd0dd09168e19b29e44f7ec6ec4d";
|
rev = "59bad754cb338872c622ad716e8ed0063edf4052";
|
||||||
sha256 = "12llf4dnyria0s1x4bmm360d6bxk47z0wyxwwlmq3762mdfl36js";
|
sha256 = "19nnmv2jvb0xmcha79dij399avasn2x521n9qg11lqj8xnzadm6a";
|
||||||
};
|
};
|
||||||
|
|
||||||
version = builtins.substring 0 7 src.rev;
|
version = builtins.substring 0 7 src.rev;
|
||||||
@ -17,6 +17,10 @@ let
|
|||||||
description = "Enable RPC over lightning";
|
description = "Enable RPC over lightning";
|
||||||
extraPkgs = [ nbPython3Packages.runes ];
|
extraPkgs = [ nbPython3Packages.runes ];
|
||||||
};
|
};
|
||||||
|
currencyrate = {
|
||||||
|
description = "Currency rate fetcher and converter";
|
||||||
|
extraPkgs = [ requests cachetools ];
|
||||||
|
};
|
||||||
feeadjuster = {
|
feeadjuster = {
|
||||||
description = "Dynamically changes channel fees to keep your channels more balanced";
|
description = "Dynamically changes channel fees to keep your channels more balanced";
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user