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
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue