nix-bitcoin/modules/presets/enable-tor.nix

36 lines
945 B
Nix
Raw Normal View History

2021-11-08 03:43:14 -08:00
{ lib, config, ... }:
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;
2021-03-01 01:59:23 -08:00
lightning-pool.enforceTor = true;
2021-11-08 03:43:14 -08:00
rtl.enforceTor = true;
};
# Add onion services for incoming connections
nix-bitcoin.onionServices = {
bitcoind.enable = defaultTrue;
liquidd.enable = defaultTrue;
electrs.enable = defaultTrue;
spark-wallet.enable = defaultTrue;
2021-01-17 04:24:57 -08:00
joinmarket-ob-watcher.enable = defaultTrue;
2021-11-08 03:43:14 -08:00
rtl.enable = defaultTrue;
};
}