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";