From d8364d07c345783460e567af8ad6d4ef047c5cc0 Mon Sep 17 00:00:00 2001 From: fi Date: Fri, 14 Feb 2025 13:20:51 +0100 Subject: [PATCH] Specify dependencies on other services for matrix authentication service Fixes matrix authentication service crashing on startup after a host reboot because the network is down. --- config/hosts/matrix/matrix-authentication-service.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/hosts/matrix/matrix-authentication-service.nix b/config/hosts/matrix/matrix-authentication-service.nix index 6c69834..8c8ce91 100644 --- a/config/hosts/matrix/matrix-authentication-service.nix +++ b/config/hosts/matrix/matrix-authentication-service.nix @@ -78,6 +78,9 @@ in systemd.services.matrix-authentication-service = { description = "Matrix Authentication Service"; + after = [ "network-online.target" "postgresql.service" ]; + requires = [ "postgresql.service" ]; + wants = [ "network-online.target" ]; serviceConfig = { Type = "simple";