fix(nextcloud): Last fix for memories and preview
This commit is contained in:
parent
fc5d401dae
commit
2cd8a54e8e
1 changed files with 18 additions and 10 deletions
|
@ -1,6 +1,8 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
let host = "cloud.dgnum.eu";
|
let
|
||||||
|
host = "cloud.dgnum.eu";
|
||||||
|
nextcloud-occ = "${config.services.nextcloud.occ}/bin/nextcloud-occ";
|
||||||
in {
|
in {
|
||||||
services.nextcloud = {
|
services.nextcloud = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -74,12 +76,11 @@ in {
|
||||||
updatechecker = false;
|
updatechecker = false;
|
||||||
|
|
||||||
allow_local_remote_servers = true;
|
allow_local_remote_servers = true;
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.services.nextcloud-preview = {
|
"memories.exiftool" = "${pkgs.lib.getExe pkgs.exiftool}";
|
||||||
script = "${config.services.nextcloud.occ} preview:pre-generate -vvv";
|
"memories.vod.ffmpeg" = "${pkgs.lib.getExe pkgs.ffmpeg-headless}";
|
||||||
startAt = "*-*-* 01:00:00 UTC";
|
"memories.vod.ffprobe" = "${pkgs.ffmpeg-headless}/bin/ffprobe";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts.${host} = {
|
services.nginx.virtualHosts.${host} = {
|
||||||
|
@ -91,10 +92,17 @@ in {
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
systemd.services = {
|
||||||
ffmpeg_6-headless
|
nextcloud-preview = {
|
||||||
exiftool
|
description = "Generate preview for nextcloud media.";
|
||||||
];
|
script = "${nextcloud-occ} preview:pre-generate -vvv";
|
||||||
|
startAt = "*-*-* 01:00:00 UTC";
|
||||||
|
};
|
||||||
|
|
||||||
|
nextcloud-cron.path = [ pkgs.perl ];
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = [ pkgs.ffmpeg_6-headless ];
|
||||||
|
|
||||||
dgn-secrets.matches."^nextcloud-.*$" = { owner = "nextcloud"; };
|
dgn-secrets.matches."^nextcloud-.*$" = { owner = "nextcloud"; };
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue