From e4c4d7b3410cbae490582a397b04602cc7f7c8ec Mon Sep 17 00:00:00 2001 From: harry Date: Mon, 12 Aug 2024 21:15:24 +0200 Subject: [PATCH] feat: added heic format support --- features/services/nextcloud.nix | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/features/services/nextcloud.nix b/features/services/nextcloud.nix index 19b2f38..8281ab2 100644 --- a/features/services/nextcloud.nix +++ b/features/services/nextcloud.nix @@ -1,14 +1,37 @@ { config, ... }: { + imports = [ + "${ + fetchTarball { + url = "https://github.com/onny/nixos-nextcloud-testumgebung/archive/fa6f062830b4bc3cedb9694c1dbf01d5fdf775ac.tar.gz"; + sha256 = "0gzd0276b8da3ykapgqks2zhsqdv4jjvbv97dsxg0hgrhb74z0fs"; + } + }/nextcloud-extras.nix" + ]; # adding caddy support + sops.secrets.adminNextcloudPass = { }; services.nextcloud = { - enable = true; hostName = "cloud.hypervirtual.world"; database.createLocally = true; + webserver = "caddy"; + configureRedis = true; config = { dbtype = "pgsql"; adminpassFile = config.sops.secrets.adminNextcloudPass.path; }; + extraOptions.enabledPreviewProviders = [ + "OC\\Preview\\BMP" + "OC\\Preview\\GIF" + "OC\\Preview\\JPEG" + "OC\\Preview\\Krita" + "OC\\Preview\\MarkDown" + "OC\\Preview\\MP3" + "OC\\Preview\\OpenDocument" + "OC\\Preview\\PNG" + "OC\\Preview\\TXT" + "OC\\Preview\\XBitmap" + "OC\\Preview\\HEIC" + ]; }; }