Unverified Commit bec2364e authored by Franz Pletz's avatar Franz Pletz Committed by GitHub
Browse files

nixos/prometheus.exporters.bitcoin: fix SC2155 (#411022)

parents 8c1857cc 3be190a1
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -2,13 +2,12 @@
  config,
  lib,
  pkgs,
  options,
  ...
}:

let
  cfg = config.services.prometheus.exporters.bitcoin;
  inherit (lib) mkOption types concatStringsSep;
  inherit (lib) mkOption types;
in
{
  port = 9332;
@@ -75,7 +74,8 @@ in
  };
  serviceOpts = {
    script = ''
      export BITCOIN_RPC_PASSWORD=$(cat ${cfg.rpcPasswordFile})
      BITCOIN_RPC_PASSWORD=$(cat ${cfg.rpcPasswordFile})
      export BITCOIN_RPC_PASSWORD
      exec ${cfg.package}/bin/bitcoind-monitor.py
    '';