2021-01-14 12:24:18 +00:00
|
|
|
{ lib, ... }:
|
|
|
|
let
|
|
|
|
defaultTrue = lib.mkDefault true;
|
|
|
|
in {
|
|
|
|
services.tor = {
|
|
|
|
enable = true;
|
|
|
|
client.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
# Use Tor for all outgoing connections
|
|
|
|
services = {
|
|
|
|
bitcoind.enforceTor = true;
|
|
|
|
clightning.enforceTor = true;
|
|
|
|
lnd.enforceTor = true;
|
|
|
|
lightning-loop.enforceTor = true;
|
|
|
|
liquidd.enforceTor = true;
|
|
|
|
electrs.enforceTor = true;
|
|
|
|
# disable Tor enforcement until btcpayserver can fetch rates over Tor
|
|
|
|
# btcpayserver.enforceTor = true;
|
|
|
|
nbxplorer.enforceTor = true;
|
|
|
|
spark-wallet.enforceTor = true;
|
|
|
|
recurring-donations.enforceTor = true;
|
2021-03-01 09:59:23 +00:00
|
|
|
lightning-pool.enforceTor = true;
|
2021-01-14 12:24:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Add onion services for incoming connections
|
|
|
|
nix-bitcoin.onionServices = {
|
|
|
|
bitcoind.enable = defaultTrue;
|
|
|
|
liquidd.enable = defaultTrue;
|
|
|
|
electrs.enable = defaultTrue;
|
2021-01-14 12:24:19 +00:00
|
|
|
spark-wallet.enable = defaultTrue;
|
2021-01-17 12:24:57 +00:00
|
|
|
joinmarket-ob-watcher.enable = defaultTrue;
|
2021-01-14 12:24:18 +00:00
|
|
|
};
|
|
|
|
}
|