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
|
|
|
|
2024-01-26 21:15:31 -08: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;
|
2024-05-12 16:02:58 -07:00
|
|
|
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";
|
|
|
|
};
|
2023-08-10 17:09:16 -07:00
|
|
|
|
|
|
|
nix-bitcoin.useVersionLockedPkgs = true;
|
2023-06-01 05:47:05 -07:00
|
|
|
|
|
|
|
}
|