servo: enable bitcoind
This commit is contained in:
22
hosts/by-name/servo/services/bitcoin.nix
Normal file
22
hosts/by-name/servo/services/bitcoin.nix
Normal 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
|
||||
};
|
||||
|
||||
|
||||
}
|
@@ -1,6 +1,7 @@
|
||||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./bitcoin.nix
|
||||
./calibre.nix
|
||||
./coturn.nix
|
||||
./ddns-afraid.nix
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user