spark-wallet: fix always-on onion-chef setting
Previously, the service failed when onion-service was disabled.
This commit is contained in:
parent
480d0d3959
commit
e0117d56d1
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user