added preview settings

This commit is contained in:
glenn 2024-07-24 09:16:20 +02:00
parent 7165803a9a
commit a4fc0522c2

View file

@ -21,6 +21,9 @@ in {
}; };
}; };
systemd.services.nextcloud-cron = {
path = [pkgs.perl];
};
systemd.services."nextcloud-db-backup" = { systemd.services."nextcloud-db-backup" = {
script = with pkgs; '' script = with pkgs; ''
set -eu set -eu
@ -82,6 +85,11 @@ in {
maintenance_window_start = 1; maintenance_window_start = 1;
}; };
extraOptions = { extraOptions = {
"memories.exiftool" = "${lib.getExe pkgs.exiftool}";
"memories.vod.ffmpeg" = "${lib.getExe pkgs.ffmpeg-headless}";
"memories.vod.ffprobe" = "${pkgs.ffmpeg-headless}/bin/ffprobe";
preview_ffmpeg_path = "${pkgs.ffmpeg-headless}/bin/ffmpeg";
# redis = { # redis = {
# # host = "/run/redis/redis.sock"; # # host = "/run/redis/redis.sock";
# port = 0; # port = 0;
@ -93,7 +101,7 @@ in {
extraApps = with config.services.nextcloud.package.packages.apps; { extraApps = with config.services.nextcloud.package.packages.apps; {
# List of apps we want to install and are already packaged in # List of apps we want to install and are already packaged in
# https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/nextcloud/packages/nextcloud-apps.json # https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/nextcloud/packages/nextcloud-apps.json
inherit mail calendar contacts notes onlyoffice cookbook spreed memories; inherit mail calendar contacts notes onlyoffice cookbook spreed memories previewgenerator;
}; };
config = { config = {
overwriteProtocol = "https"; overwriteProtocol = "https";