From e3a45fcc0c007f1ad3bda1b72ba53d8c55114dd7 Mon Sep 17 00:00:00 2001 From: Jonas Nick Date: Sun, 10 Jan 2021 19:27:45 +0000 Subject: [PATCH] joinmarket: add rpcWalletFile option The joinmarket docs recommend using a separate wallet to avoid mixing up jm and default wallet. --- modules/joinmarket.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/joinmarket.nix b/modules/joinmarket.nix index 1e1ad8b..fda1c5b 100644 --- a/modules/joinmarket.nix +++ b/modules/joinmarket.nix @@ -25,6 +25,7 @@ let rpc_port = ${toString bitcoind.rpc.port} rpc_user = ${bitcoind.rpc.users.privileged.name} @@RPC_PASSWORD@@ + ${optionalString (cfg.rpcWalletFile != null) "rpc_wallet_file=${cfg.rpcWalletFile}"} [MESSAGING:server1] host = darksci3bfoka7tw.onion @@ -121,6 +122,13 @@ in { default = cfg.user; description = "The group as which to run JoinMarket."; }; + rpcWalletFile = mkOption { + type = types.nullOr types.str; + default = null; + description = '' + Name of the watch-only bitcoind wallet the JoinMarket addresses are imported to. + ''; + }; cli = mkOption { default = cli; };