spark-wallet: fix always-on onion-chef setting

Previously, the service failed when onion-service was disabled.
This commit is contained in:
Erik Arvstedt 2020-09-28 13:09:06 +02:00
parent 480d0d3959
commit e0117d56d1
No known key found for this signature in database
GPG Key ID: 33312B944DD97846

View File

@ -89,7 +89,7 @@ in {
User = "spark-wallet"; User = "spark-wallet";
Restart = "on-failure"; Restart = "on-failure";
RestartSec = "10s"; RestartSec = "10s";
ReadWritePaths = "/var/lib/onion-chef"; ReadWritePaths = mkIf cfg.onion-service "/var/lib/onion-chef";
} // (if cfg.enforceTor } // (if cfg.enforceTor
then nix-bitcoin-services.allowTor then nix-bitcoin-services.allowTor
else nix-bitcoin-services.allowAnyIP) else nix-bitcoin-services.allowAnyIP)