nixos/nextcloud: Use php.enabledExtensions

This commit is contained in:
talyz 2020-04-05 16:30:02 +02:00
parent ca8b8a26e9
commit 5ace72cd6c
No known key found for this signature in database
GPG Key ID: 2DED2151F4671A2B
1 changed files with 11 additions and 10 deletions

View File

@ -6,12 +6,13 @@ let
cfg = config.services.nextcloud; cfg = config.services.nextcloud;
fpm = config.services.phpfpm.pools.nextcloud; fpm = config.services.phpfpm.pools.nextcloud;
phpPackage = pkgs.php74.buildEnv { phpPackage =
extensions = e: with e; [ let
bcmath calendar curl exif ftp filter gd gettext gmp intl json ldap base = pkgs.php74;
mysqlnd opcache openssl pcntl pdo pdo_mysql pdo_odbc pdo_pgsql in
pdo_sqlite pgsql readline session soap sodium sqlite3 zip zlib mbstring base.buildEnv {
posix ctype dom simplexml xmlreader xmlwriter extensions = e: with e;
base.enabledExtensions ++ [
apcu redis memcached imagick apcu redis memcached imagick
]; ];
extraConfig = phpOptionsStr; extraConfig = phpOptionsStr;