Sovran_SystemsOS/modules/bitcoinecosystem.nix

97 lines
1.6 KiB
Nix
Raw Normal View History

2023-06-01 05:47:05 -07:00
{ config, pkgs, lib, ... }:
{
nix-bitcoin.generateSecrets = true;
services.bitcoind = {
enable = true;
dataDir = "/run/media/Second_Drive/BTCEcoandBackup/Bitcoin_Node";
txindex = true;
tor.proxy = true;
disablewallet = true;
extraConfig = ''
peerbloomfilters=1
server=1
2023-11-20 21:35:28 -08:00
'';
};
2023-06-01 05:47:05 -07:00
systemd.services.bitcoind.wants = [ "network-online.target" ];
2023-06-01 05:47:05 -07:00
nix-bitcoin.onionServices.bitcoind.enable = true;
nix-bitcoin.onionServices.electrs.enable = true;
2023-11-20 21:30:51 -08:00
nix-bitcoin.onionServices.rtl.enable = true;
2023-06-01 05:47:05 -07:00
services.lnd = {
enable = true;
2023-11-20 21:30:51 -08:00
tor.enforce = true;
2023-11-20 21:34:12 -08:00
tor.proxy = true;
extraConfig = ''
protocol.option-scid-alias=true
'';
2023-06-01 05:47:05 -07:00
};
services.lightning-loop = {
2023-11-20 21:34:12 -08:00
enable = true;
tor.enforce = true;
tor.proxy = true;
2023-06-01 05:47:05 -07:00
};
services.lightning-pool = {
enable = true;
2023-11-20 21:34:12 -08:00
tor.enforce = true;
tor.proxy = true;
2023-06-01 05:47:05 -07:00
};
services.rtl = {
enable = true;
2023-11-20 21:30:51 -08:00
tor.enforce = true;
2023-06-01 05:47:05 -07:00
port = 3050;
nightTheme = true;
nodes = {
lnd = {
enable = true;
loop = true;
};
reverseOrder = true;
};
};
2024-01-17 13:58:45 -08:00
services.mempool.enable = true;
nix-bitcoin.onionServices.mempool-frontend.enable = true;
2023-11-20 21:34:12 -08:00
nix-bitcoin.onionServices.lnd.public = true;
services.lnd.lndconnect = {
enable = true;
onion = true;
};
services.charge-lnd.enable = true;
2023-06-01 05:47:05 -07:00
2023-11-20 21:34:12 -08:00
services.btcpayserver.lightningBackend = "lnd";
2023-06-01 05:47:05 -07:00
services.electrs = {
enable = true;
tor.enforce = true;
dataDir = "/run/media/Second_Drive/BTCEcoandBackup/Electrs_Data";
};
services.btcpayserver = {
enable = true;
};
nix-bitcoin.nodeinfo.enable = true;
nix-bitcoin.operator = {
enable = true;
name = "free";
};
nix-bitcoin.useVersionLockedPkgs = true;
2023-06-01 05:47:05 -07:00
}