nixos/solitary: Use ImageMagick for media previews
Some checks are pending
nix flake check / check (aarch64-linux) (push) Waiting to run
nix flake check / check (x86_64-linux) (push) Waiting to run

This commit is contained in:
Mikael 2024-11-03 13:03:03 +01:00
parent 1919e2958e
commit 8932756008
Signed by: mikael
SSH key fingerprint: SHA256:21QyD2Meiot7jOUVitIR5YkGB/XuXdCvLW1hE6dsri0

View file

@ -81,6 +81,7 @@ in {
}; };
services.akkoma.enable = true; services.akkoma.enable = true;
services.akkoma.extraPackages = with pkgs; [ exiftool ffmpeg-headless imagemagick ];
services.akkoma.extraStatic."emoji/blobs.gg" = pkgs.akkoma-emoji.blobs_gg; services.akkoma.extraStatic."emoji/blobs.gg" = pkgs.akkoma-emoji.blobs_gg;
services.akkoma.extraStatic."static/terms-of-service.html" = pkgs.writeText "terms-of-service.html" '' services.akkoma.extraStatic."static/terms-of-service.html" = pkgs.writeText "terms-of-service.html" ''
<h2>Commitments</h2> <h2>Commitments</h2>
@ -176,7 +177,7 @@ in {
}; };
":media_preview_proxy" = { ":media_preview_proxy" = {
enabled = false; enabled = true;
thumbnail_max_width = 1920; thumbnail_max_width = 1920;
thumbnail_max_height = 1080; thumbnail_max_height = 1080;
min_content_length = 128 * 1024; min_content_length = 128 * 1024;