nixos/nextcloud: Conditionally enable caching PHP extensions

wip/yesman
Manuel Bärenz 3 years ago
parent 6cf2b5466d
commit 0ff63a3fa6
  1. 10
      nixos/modules/services/web-apps/nextcloud.nix

@ -8,8 +8,14 @@ let
phpPackage = pkgs.php74.buildEnv {
extensions = { enabled, all }:
enabled
++ (with all; [ apcu redis memcached imagick ]) # Necessary for vanilla nextcloud
(with all;
enabled
++ [ imagick ] # Always enabled
# Optionally enabled depending on caching settings
++ optional cfg.caching.apcu apcu
++ optional cfg.caching.redis redis
++ optional cfg.caching.memcached memcached
)
++ cfg.phpExtraExtensions all; # Enabled by user
extraConfig = toKeyValue phpOptions;
};

Loading…
Cancel
Save