From 9dc390d1a4805f862cf81b10a813e80fb1451d65 Mon Sep 17 00:00:00 2001 From: materus Date: Tue, 26 Mar 2024 15:29:45 +0100 Subject: [PATCH] waffentrager: nextcloud - add preview config --- .../host/waffentrager/services/nextcloud.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/configurations/host/waffentrager/services/nextcloud.nix b/configurations/host/waffentrager/services/nextcloud.nix index 29b23e9..93c1206 100644 --- a/configurations/host/waffentrager/services/nextcloud.nix +++ b/configurations/host/waffentrager/services/nextcloud.nix @@ -45,6 +45,21 @@ extraOptions = { mail_smtpmode = "sendmail"; mail_sendmailmode = "pipe"; + enable_previews = true; + enabledPreviewProviders = [ + ''OC\Preview\Movie'' + ''OC\Preview\PNG'' + ''OC\Preview\JPEG'' + ''OC\Preview\GIF'' + ''OC\Preview\BMP'' + ''OC\Preview\XBitmap'' + ''OC\Preview\MP3'' + ''OC\Preview\MP4'' + ''OC\Preview\TXT'' + ''OC\Preview\MarkDown'' + ''OC\Preview\PDF'' + ]; + "overwrite.cli.url" = "https://${config.services.nextcloud.hostName}"; }; globalProfiles = true;