Matrix: Difference between revisions
imported>Pacien remove imports from unstable (packages and modules are now in current stable) |
imported>Pacien mautrix-telegram: add config for animated stickers conversion |
||
Line 136: | Line 136: | ||
permissions = { | permissions = { | ||
"@someadmin:domain.tld" = "admin"; | "@someadmin:domain.tld" = "admin"; | ||
}; | |||
# Animated stickers conversion requires additional packages in the service's path. | |||
# If this isn't a fresh installation, clearing the bridge's uploaded | |||
# file cache might be necessary (make a database backup first!): | |||
# `delete from telegram_file where | |||
# mime_type in ('application/gzip', 'application/octet-stream')` | |||
animated_sticker = { | |||
target = "gif"; | |||
args = { | |||
width = 256; | |||
height = 256; | |||
fps = 30; # only for webm | |||
background = "020202"; # only for gif, transparency not supported | |||
}; | |||
}; | }; | ||
}; | }; | ||
}; | }; | ||
}; | }; | ||
systemd.services.mautrix-telegram.path = with pkgs; [ | |||
lottieconverter # for animated stickers conversion, unfree package | |||
ffmpeg # if converting animated stickers to webm (very slow!) | |||
]; | |||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> |