Only set dataDirReadableByGroup if cfg.high-memory is enabled

This commit is contained in:
nixbitcoin 2020-04-24 16:21:12 +02:00
parent 39ff39eb32
commit 742aef1e0f
No known key found for this signature in database
GPG Key ID: DD11F9AD5308B3BA
2 changed files with 3 additions and 2 deletions

View File

@ -63,7 +63,8 @@
# Electrum Server in Rust. Only enable this if hardware wallets are # Electrum Server in Rust. Only enable this if hardware wallets are
# disabled. # disabled.
# services.electrs.enable = true; # services.electrs.enable = true;
# If you have ≥8GB memory, enable this option so electrs will sync faster. # If you have more than 8GB memory, enable this option so electrs will
# sync faster.
# services.electrs.high-memory = true; # services.electrs.high-memory = true;
### LIQUIDD ### LIQUIDD

View File

@ -46,7 +46,7 @@ in {
services.bitcoind = { services.bitcoind = {
enable = true; enable = true;
listen = true; listen = true;
dataDirReadableByGroup = mkIf cfg.electrs.enable true; dataDirReadableByGroup = mkIf cfg.electrs.high-memory true;
proxy = cfg.tor.client.socksListenAddress; proxy = cfg.tor.client.socksListenAddress;
enforceTor = true; enforceTor = true;
port = 8333; port = 8333;