servo: enable bitcoind

This commit is contained in:
2023-12-03 08:49:24 +00:00
parent 908984c285
commit 6f4072efdd
3 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
# as of 2023/12/02: complete blockchain is 530 GiB (on-disk size may be larger)
{ ... }:
{
sane.persist.sys.byStore.ext = [
# /var/lib/monero/lmdb is what consumes most of the space
{ user = "bitcoind-mainnet"; group = "bitcoind-mainnet"; path = "/var/lib/bitcoind-mainnet"; }
];
sane.ports.ports."8333" = {
# this allows other nodes and clients to download blocks from me.
protocol = [ "tcp" ];
visibleTo.wan = true;
description = "colin-bitcoin";
};
services.bitcoind.mainnet = {
enable = true;
# TODO: set `rpc.users` to include my user
};
}

View File

@@ -1,6 +1,7 @@
{ ... }:
{
imports = [
./bitcoin.nix
./calibre.nix
./coturn.nix
./ddns-afraid.nix

View File

@@ -53,6 +53,8 @@
sane.ids.monero.gid = 2416;
sane.ids.slskd.uid = 2417;
sane.ids.slskd.gid = 2417;
sane.ids.bitcoind-mainnet.uid = 2418;
sane.ids.bitcoind-mainnet.gid = 2418;
sane.ids.colin.uid = 1000;
sane.ids.guest.uid = 1100;