nixos/nextcloud: Conditionally enable caching PHP extensions
This commit is contained in:
parent
6cf2b5466d
commit
0ff63a3fa6
1 changed files with 8 additions and 2 deletions
|
@ -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…
Reference in a new issue