From d1c0ea9f85d40d28a239f171947de1b9a1cb19ef Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Mon, 1 Feb 2021 22:53:00 +0100 Subject: [PATCH] btcpayserver: add missing systemd postgresql dependency btcpayserver fails if it starts before postgresql. --- modules/btcpayserver.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/btcpayserver.nix b/modules/btcpayserver.nix index b663132..f47bd9f 100644 --- a/modules/btcpayserver.nix +++ b/modules/btcpayserver.nix @@ -168,7 +168,7 @@ in { "certthumbprint="; in let self = { wantedBy = [ "multi-user.target" ]; - requires = [ "nbxplorer.service" ] + requires = [ "nbxplorer.service" "postgresql.service" ] ++ optional (cfg.btcpayserver.lightningBackend != null) "${cfg.btcpayserver.lightningBackend}.service"; after = self.requires; preStart = ''