nixos/nextcloud: Conditionally enable ImageMagick PHP extension
This commit is contained in:
@@ -10,7 +10,7 @@ let
|
|||||||
extensions = { enabled, all }:
|
extensions = { enabled, all }:
|
||||||
(with all;
|
(with all;
|
||||||
enabled
|
enabled
|
||||||
++ [ imagick ] # Always enabled
|
++ optional cfg.imagemagick imagick
|
||||||
# Optionally enabled depending on caching settings
|
# Optionally enabled depending on caching settings
|
||||||
++ optional cfg.caching.apcu apcu
|
++ optional cfg.caching.apcu apcu
|
||||||
++ optional cfg.caching.redis redis
|
++ optional cfg.caching.redis redis
|
||||||
@@ -303,6 +303,18 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
imagemagick = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = true;
|
||||||
|
description = ''
|
||||||
|
Whether to 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
|
||||||
|
for some images (e.g. JPEG and PNG).
|
||||||
|
See https://github.com/nextcloud/server/issues/13099
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
caching = {
|
caching = {
|
||||||
apcu = mkOption {
|
apcu = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
|
|||||||
Reference in New Issue
Block a user