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";