fix: revert mautrix-telegram changes

This commit is contained in:
teutat3s 2023-12-02 16:09:15 +01:00
parent 37528c0874
commit becaa9d649
Signed by untrusted user: teutat3s
GPG key ID: 4FA1D3FA524F22C1

View file

@ -205,19 +205,7 @@
lottieconverter # for animated stickers conversion, unfree package lottieconverter # for animated stickers conversion, unfree package
ffmpeg # if converting animated stickers to webm (very slow!) ffmpeg # if converting animated stickers to webm (very slow!)
]; ];
systemd.services.mautrix-telegram.serviceConfig = systemd.services.mautrix-telegram.serviceConfig = {
let
cfg = config.services.mautrix-telegram;
settingsFormat = pkgs.formats.json {};
settingsFile =
settingsFormat.generate "mautrix-telegram-config.json" cfg.settings;
in
{
User = "matrix-synapse"; User = "matrix-synapse";
ExecStart = lib.mkForce ''
${pkgs.mautrix-telegram}/bin/mautrix-telegram \
--config='${settingsFile}' \
--no-update
'';
}; };
} }