bitcoind: add cli option

This commit is contained in:
Erik Arvstedt 2019-11-12 19:40:30 +01:00
parent 8807b9f6b2
commit 55e73f32e3
No known key found for this signature in database
GPG key ID: 33312B944DD97846
2 changed files with 9 additions and 1 deletions

View file

@ -209,6 +209,14 @@ in {
example = "tcp://127.0.0.1:28333";
description = "ZMQ address for zmqpubrawtx notifications";
};
cli = mkOption {
type = types.package;
readOnly = true;
default = pkgs.writeScriptBin "bitcoin-cli" ''
exec ${cfg.package}/bin/bitcoin-cli -datadir='${cfg.dataDir}' "$@"
'';
description = "Binary to connect with the bitcoind instance.";
};
enforceTor = nix-bitcoin-services.enforceTor;
};
};