diff --git a/profiles/servers/matrix-synapse.nix b/profiles/servers/matrix-synapse.nix index 78dde35..bebddda 100644 --- a/profiles/servers/matrix-synapse.nix +++ b/profiles/servers/matrix-synapse.nix @@ -112,8 +112,11 @@ }; }; - systemd.services.mautrix-telegram.serviceConfig.DynamicUser = - lib.mkForce false; + systemd.services.mautrix-telegram.serviceConfig = { + DynamicUser = lib.mkForce false; + Restart = "always"; + RuntimeMaxSec = "1d"; + }; systemd.services.mautrix-telegram.serviceConfig.User = "mautrix-telegram";