about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorBenjamin Koch <bbbsnowball@gmail.com>2021-03-09 00:02:33 +0100
committerBenjamin Koch <bbbsnowball@gmail.com>2021-03-09 00:38:39 +0100
commit6e6f5f09234d3744eb87c92b95f4a795867676f9 (patch)
treea6a9c61e10d4913a70e2a51b9ee6f63f8fbc44d6 /nixos
parente30311bc68677a1521f9218478e799dd82214825 (diff)
nixos/nextcloud: Rename option to services.nextcloud.disableImagemagick
... as was suggested in the related issue
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/web-apps/nextcloud.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/nixos/modules/services/web-apps/nextcloud.nix b/nixos/modules/services/web-apps/nextcloud.nix
index 28524df078c59..9a541aba6e43b 100644
--- a/nixos/modules/services/web-apps/nextcloud.nix
+++ b/nixos/modules/services/web-apps/nextcloud.nix
@@ -10,7 +10,7 @@ let
     extensions = { enabled, all }:
       (with all;
         enabled
-        ++ optional cfg.imagemagick imagick
+        ++ optional (!cfg.disableImagemagick) imagick
         # Optionally enabled depending on caching settings
         ++ optional cfg.caching.apcu apcu
         ++ optional cfg.caching.redis redis
@@ -303,13 +303,13 @@ in {
       };
     };
 
-    imagemagick = mkOption {
+    disableImagemagick = mkOption {
       type = types.bool;
-      default = true;
+      default = false;
       description = ''
-        Whether to load the ImageMagick module into PHP.
+        Whether to not load the ImageMagick module into PHP.
         This is used by the theming app and for generating previews of certain images (e.g. SVG and HEIF).
-        You may want to disable this for increased security. In that case, previews will still be available
+        You may want to disable it for increased security. In that case, previews will still be available
         for some images (e.g. JPEG and PNG).
         See https://github.com/nextcloud/server/issues/13099
       '';