diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2022-06-24 08:37:43 +0200 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2022-06-24 08:37:43 +0200 |
commit | 6c1f44b3f17fc2a4610d4565ea609b8cf5bfe8d9 (patch) | |
tree | 22c1ce1a04e734c5d2578e6e22a2eccd4b111e26 /nixos | |
parent | 419a091fda571a8302632567bdb9eeb848be506a (diff) |
nixos/matrix-appservice-irc: wait for postgres to start
Closes: #178692
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/matrix/appservice-irc.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/modules/services/matrix/appservice-irc.nix b/nixos/modules/services/matrix/appservice-irc.nix index b041c9c82c56e..ff938527ed58a 100644 --- a/nixos/modules/services/matrix/appservice-irc.nix +++ b/nixos/modules/services/matrix/appservice-irc.nix @@ -153,6 +153,9 @@ in { systemd.services.matrix-appservice-irc = { description = "Matrix-IRC bridge"; before = [ "matrix-synapse.service" ]; # So the registration can be used by Synapse + after = lib.optionals (cfg.settings.database.engine == "postgres") [ + "postgresql.service" + ]; wantedBy = [ "multi-user.target" ]; preStart = '' |