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;
|
2023-06-01 05:47:05 -07:00
|
|
|
};
|
|
|
|
|
2023-11-20 21:30:51 -08:00
|
|
|
services.lnd.macaroons.btcpayserver.permissions = lib.mkForce ''
|
2023-11-20 21:34:12 -08:00
|
|
|
{"entity":"address","action":"write"},
|
|
|
|
{"entity":"info","action":"read"},
|
|
|
|
{"entity":"info","action":"write"},
|
|
|
|
{"entity":"invoices","action":"read"},
|
|
|
|
{"entity":"invoices","action":"write"},
|
|
|
|
{"entity":"macaroon","action":"generate"},
|
|
|
|
{"entity":"macaroon","action":"read"},
|
|
|
|
{"entity":"macaroon","action":"write"},
|
|
|
|
{"entity":"message","action":"read"},
|
|
|
|
{"entity":"message","action":"write"},
|
|
|
|
{"entity":"offchain","action":"read"},
|
|
|
|
{"entity":"offchain","action":"write"},
|
|
|
|
{"entity":"onchain","action":"read"},
|
|
|
|
{"entity":"onchain","action":"write"},
|
|
|
|
{"entity":"peers","action":"read"},
|
|
|
|
{"entity":"peers","action":"write"},
|
|
|
|
{"entity":"signer","action":"generate"},
|
|
|
|
{"entity":"signer","action":"read"}
|
|
|
|
'';
|
2023-11-20 21:30:51 -08:00
|
|
|
|
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
|
|
|
|
|
|
|
}
|