mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
nixos/nextcloud: Conditionally enable caching PHP extensions
This commit is contained in:
parent
6cf2b5466d
commit
0ff63a3fa6
@ -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 New Issue
Block a user