feat(nextcloud): add preview provider options and ffmpeg
Include ffmpeg in system packages to support media processing. Enable various preview providers for enhanced file previews in Nextcloud.
This commit is contained in:
parent
442dc5f697
commit
3d334bd98c
|
@ -2,6 +2,7 @@
|
||||||
{
|
{
|
||||||
systemd.services."nextcloud-setup".requires = [ "postgresql.service" ];
|
systemd.services."nextcloud-setup".requires = [ "postgresql.service" ];
|
||||||
systemd.services."nextcloud-setup".after = [ "postgresql.service" ];
|
systemd.services."nextcloud-setup".after = [ "postgresql.service" ];
|
||||||
|
environment.systemPackages = with pkgs; [ ffmpeg ];
|
||||||
|
|
||||||
environment.etc."nextcloud-admin-pass".text = "test123";
|
environment.etc."nextcloud-admin-pass".text = "test123";
|
||||||
services.nextcloud = {
|
services.nextcloud = {
|
||||||
|
@ -25,5 +26,21 @@
|
||||||
config.dbname = "nextcloud";
|
config.dbname = "nextcloud";
|
||||||
config.dbhost = "/run/postgresql";
|
config.dbhost = "/run/postgresql";
|
||||||
config.dbuser = "nextcloud";
|
config.dbuser = "nextcloud";
|
||||||
|
extraOptions.enabledPreviewProviders = [
|
||||||
|
"OC\\Preview\\BMP"
|
||||||
|
"OC\\Preview\\GIF"
|
||||||
|
"OC\\Preview\\HEIC"
|
||||||
|
"OC\\Preview\\JPEG"
|
||||||
|
"OC\\Preview\\Krita"
|
||||||
|
"OC\\Preview\\MP3"
|
||||||
|
"OC\\Preview\\MP4"
|
||||||
|
"OC\\Preview\\MarkDown"
|
||||||
|
"OC\\Preview\\Movie"
|
||||||
|
"OC\\Preview\\OpenDocument"
|
||||||
|
"OC\\Preview\\PDF"
|
||||||
|
"OC\\Preview\\PNG"
|
||||||
|
"OC\\Preview\\TXT"
|
||||||
|
"OC\\Preview\\XBitmap"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue