trustedcoin: add module

This commit is contained in:
neverupdate 2022-08-27 01:15:06 -03:00 committed by Otto Sabart
parent 3197338d81
commit 35fc3a2b44
No known key found for this signature in database
GPG Key ID: 823BAE99F8BE1E3C

View File

@ -0,0 +1,21 @@
{ config, lib, pkgs, ... }:
with lib;
let cfg = config.services.clightning.plugins.trustedcoin; in
{
options.services.clightning.plugins.trustedcoin = {
enable = mkEnableOption "Trustedcoin (clightning plugin)";
package = mkOption {
type = types.package;
default = config.nix-bitcoin.pkgs.trustedcoin;
defaultText = "config.nix-bitcoin.pkgs.trustedcoin";
description = "The package providing trustedcoin binaries.";
};
};
config = mkIf cfg.enable {
services.clightning.extraConfig = ''
plugin=${cfg.package}/bin/trustedcoin
'';
};
}