challenger/nextcloud: Try bothering nextcloud into giving me exiftool

This commit is contained in:
Felix Albrigtsen 2024-07-26 11:04:39 +02:00
parent ac7a7454bc
commit e3abb23e98
1 changed files with 15 additions and 11 deletions

View File

@ -46,15 +46,11 @@ in {
oidc_login_filter_allowed_values = [ "nextcloud-user" ]; oidc_login_filter_allowed_values = [ "nextcloud-user" ];
oidc_login_disable_registration = false; oidc_login_disable_registration = false;
memories = { "memories.exiftool" = "${cfg.home}/store-apps/memories/bin-ext/exiftool-amd64-glibc";
# exiftool = "${lib.getExe pkgs.exiftool}"; # TODO - not working, use perl "memories.exiftool_no_local" = false;
# exiftool_no_local = false; "memories.vod.disable" = false;
vod = { "memories.vod.ffmpeg" = "${lib.getExe pkgs.ffmpeg-headless}";
disable = false; "memories.vod.ffprobe" = "${pkgs.ffmpeg-headless}/bin/ffprobe";
ffmpeg = "${lib.getExe pkgs.ffmpeg-headless}";
ffprobe = "${pkgs.ffmpeg-headless}/bin/ffprobe";
};
};
preview_ffmpeg_path = "${pkgs.ffmpeg-headless}/bin/ffmpeg"; preview_ffmpeg_path = "${pkgs.ffmpeg-headless}/bin/ffmpeg";
}; };
@ -102,7 +98,10 @@ in {
}; };
systemd.services.nextcloud-cron = { systemd.services.nextcloud-cron = {
path = [ pkgs.perl ]; # exiftool doesn't work, so make perl available instead path = with pkgs; [
exiftool
ffmpeg-headless
];
}; };
systemd.services."nextcloud-setup" = { systemd.services."nextcloud-setup" = {
@ -112,7 +111,12 @@ in {
systemd.services."phpfpm-nextcloud" = { systemd.services."phpfpm-nextcloud" = {
requires = [ "tank-nextcloud.mount" ]; requires = [ "tank-nextcloud.mount" ];
path = [ pkgs.perl ]; path = with pkgs; [
# perl
# perlPackages.ImageExifTool
exiftool
ffmpeg-headless
];
serviceConfig = { serviceConfig = {
PrivateDevices = lib.mkForce false; PrivateDevices = lib.mkForce false;
WorkingDirectory = "/tank/nextcloud"; WorkingDirectory = "/tank/nextcloud";