modules(wp): fix optional use

This commit is contained in:
Raito Bezarius 2021-11-22 22:22:29 +01:00
parent b7035923ab
commit bee4f713b3

View file

@ -7,7 +7,10 @@
assert appConfig.php.scriptMemoryLimitMb > appConfig.maxUploadMb; assert appConfig.php.scriptMemoryLimitMb > appConfig.maxUploadMb;
php.buildEnv { php.buildEnv {
extensions = { all, ... }: with all; [ imagick ] ++ pkgs.lib.optional appConfig.opcache.enable [ opcache ] ++ pkgs.lib.optional appConfig.php.enableXDebug [ xdebug ]; extensions = { all, ... }: with all; [ imagick ]
++ (pkgs.lib.optional appConfig.opcache.enable opcache)
++ (pkgs.lib.optional appConfig.php.enableXDebug xdebug);
extraConfig = '' extraConfig = ''
memory_limit = ${toString appConfig.php.scriptMemoryLimitMb}M memory_limit = ${toString appConfig.php.scriptMemoryLimitMb}M
upload_max_filesize = ${toString appConfig.maxUploadMb}M upload_max_filesize = ${toString appConfig.maxUploadMb}M