fix(mautrix-telegram): should not try to update config
See: https://github.com/mautrix/python/pull/152
This commit is contained in:
parent
35a4ac5619
commit
904a73b51d
|
@ -205,7 +205,19 @@
|
||||||
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 = ''
|
||||||
|
${pkgs.mautrix-telegram}/bin/mautrix-telegram \
|
||||||
|
--config='${settingsFile}'
|
||||||
|
--no-update
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue