modules(wp): fix optional use
This commit is contained in:
parent
b7035923ab
commit
bee4f713b3
1 changed files with 4 additions and 1 deletions
|
@ -7,7 +7,10 @@
|
|||
assert appConfig.php.scriptMemoryLimitMb > appConfig.maxUploadMb;
|
||||
|
||||
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 = ''
|
||||
memory_limit = ${toString appConfig.php.scriptMemoryLimitMb}M
|
||||
upload_max_filesize = ${toString appConfig.maxUploadMb}M
|
||||
|
|
Loading…
Reference in a new issue