mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
Merge pull request #308796 from 0xB10C/2024-05-promethues-bitcoin-exporter-expose-package
nixos/prometheus-bitcoin-exporter: expose package option
This commit is contained in:
commit
23f72abf0c
@ -7,6 +7,8 @@ in
|
||||
{
|
||||
port = 9332;
|
||||
extraOpts = {
|
||||
package = lib.mkPackageOption pkgs "prometheus-bitcoin-exporter" { };
|
||||
|
||||
rpcUser = mkOption {
|
||||
type = types.str;
|
||||
default = "bitcoinrpc";
|
||||
@ -65,7 +67,7 @@ in
|
||||
serviceOpts = {
|
||||
script = ''
|
||||
export BITCOIN_RPC_PASSWORD=$(cat ${cfg.rpcPasswordFile})
|
||||
exec ${pkgs.prometheus-bitcoin-exporter}/bin/bitcoind-monitor.py
|
||||
exec ${cfg.package}/bin/bitcoind-monitor.py
|
||||
'';
|
||||
|
||||
environment = {
|
||||
|
Loading…
Reference in New Issue
Block a user