spark-wallet: don't disable tor when onion-service is disabled

This fixes modules-only usage.

We can leave enabling tor and tor.client to secure-node.nix, on which
spark-wallet has a strict dependency.
This commit is contained in:
Erik Arvstedt 2020-09-27 12:43:33 +02:00
parent c9251e72a1
commit 36358066e4
No known key found for this signature in database
GPG Key ID: 33312B944DD97846

View File

@ -71,9 +71,6 @@ in {
}; };
users.groups.spark-wallet = {}; users.groups.spark-wallet = {};
services.tor.enable = cfg.onion-service;
# requires client functionality for Bitcoin rate lookup
services.tor.client.enable = true;
services.tor.hiddenServices.spark-wallet = mkIf cfg.onion-service { services.tor.hiddenServices.spark-wallet = mkIf cfg.onion-service {
map = [{ map = [{
port = 80; toPort = 9737; toHost = cfg.host; port = 80; toPort = 9737; toHost = cfg.host;