From 5596bcf4fba7362340e7a960cfeb00994d81b353 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Wed, 4 Mar 2020 18:09:04 +0100 Subject: [PATCH] bitcoind: set default rpcuser We're already setting a default rpcpassword, so we should set an accompanying rpcuser so that rpc clients like electrs work out of the box. --- modules/bitcoind.nix | 2 +- modules/nix-bitcoin.nix | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/bitcoind.nix b/modules/bitcoind.nix index e6c44fa..edc1db8 100644 --- a/modules/bitcoind.nix +++ b/modules/bitcoind.nix @@ -135,7 +135,7 @@ in { rpcuser = mkOption { type = types.nullOr types.str; - default = null; + default = "bitcoinrpc"; description = "Username for JSON-RPC connections"; }; rpcpassword = mkOption { diff --git a/modules/nix-bitcoin.nix b/modules/nix-bitcoin.nix index 9ad0566..1b71e42 100644 --- a/modules/nix-bitcoin.nix +++ b/modules/nix-bitcoin.nix @@ -54,7 +54,6 @@ in { services.bitcoind.proxy = config.services.tor.client.socksListenAddress; services.bitcoind.enforceTor = true; services.bitcoind.port = 8333; - services.bitcoind.rpcuser = "bitcoinrpc"; services.bitcoind.zmqpubrawblock = "tcp://127.0.0.1:28332"; services.bitcoind.zmqpubrawtx = "tcp://127.0.0.1:28333"; services.bitcoind.assumevalid = "00000000000000000000e5abc3a74fe27dc0ead9c70ea1deb456f11c15fd7bc6";