diff options
author | Manuel Bärenz <programming@manuelbaerenz.de> | 2021-01-11 22:15:22 +0100 |
---|---|---|
committer | Manuel Bärenz <programming@manuelbaerenz.de> | 2021-01-27 11:05:08 +0100 |
commit | 0ff63a3fa6f5a3da5bc7d85f6fe0cc5f87df94b3 (patch) | |
tree | 025c1053480cbff3047b3dd903b5095f89e0e2a9 /nixos/modules | |
parent | 6cf2b5466dd9f06b5b3982ee07d4065e1256de93 (diff) |
nixos/nextcloud: Conditionally enable caching PHP extensions
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/services/web-apps/nextcloud.nix | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/nixos/modules/services/web-apps/nextcloud.nix b/nixos/modules/services/web-apps/nextcloud.nix index a2d6d48fd40a..1b643bd3260a 100644 --- a/nixos/modules/services/web-apps/nextcloud.nix +++ b/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; }; |