From 82c476bd7578ed7fc163e8fd6216815760b4647f Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Wed, 16 Oct 2024 14:43:00 +0200 Subject: [PATCH] refactor: reorder nextcloud.nix configurations Reorganized the configuration blocks for better readability. The `enabledPreviewProviders` list and `phpOptions` section now follow a more logical structure. --- systems/x86_64-linux/mx/nextcloud.nix | 34 +++++++++++++-------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/systems/x86_64-linux/mx/nextcloud.nix b/systems/x86_64-linux/mx/nextcloud.nix index d5c9012..7fc68f4 100644 --- a/systems/x86_64-linux/mx/nextcloud.nix +++ b/systems/x86_64-linux/mx/nextcloud.nix @@ -16,6 +16,23 @@ mail_smtpmode = "sendmail"; mail_sendmailmode = "pipe"; default_phone_region = "DE"; + 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\\WEBP" + "OC\\Preview\\XBitmap" + ]; }; phpOptions = { upload_max_filesize = lib.mkForce "1G"; @@ -27,23 +44,6 @@ config.dbname = "nextcloud"; config.dbhost = "/run/postgresql"; 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\\WEBP" - "OC\\Preview\\XBitmap" - ]; }; services.postgresql = {