summaryrefslogtreecommitdiffstats
path: root/nixos/modules
diff options
context:
space:
mode:
authortalyz <kim.lindberger@gmail.com>2020-04-05 16:30:02 +0200
committertalyz <kim.lindberger@gmail.com>2020-04-05 16:46:44 +0200
commit5ace72cd6c0b9e2d294026ddfcff4886b64e6be1 (patch)
tree0a8bed3c1d542212151d25e8e3a7ff555417d2b2 /nixos/modules
parentca8b8a26e9b2d025ab7d7ed388e9ae7161681660 (diff)
nixos/nextcloud: Use php.enabledExtensions
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/services/web-apps/nextcloud.nix21
1 files changed, 11 insertions, 10 deletions
diff --git a/nixos/modules/services/web-apps/nextcloud.nix b/nixos/modules/services/web-apps/nextcloud.nix
index 82783a2b6aa4..df5bdee99fc5 100644
--- a/nixos/modules/services/web-apps/nextcloud.nix
+++ b/nixos/modules/services/web-apps/nextcloud.nix
@@ -6,16 +6,17 @@ let
cfg = config.services.nextcloud;
fpm = config.services.phpfpm.pools.nextcloud;
- phpPackage = pkgs.php74.buildEnv {
- extensions = e: with e; [
- bcmath calendar curl exif ftp filter gd gettext gmp intl json ldap
- mysqlnd opcache openssl pcntl pdo pdo_mysql pdo_odbc pdo_pgsql
- pdo_sqlite pgsql readline session soap sodium sqlite3 zip zlib mbstring
- posix ctype dom simplexml xmlreader xmlwriter
- apcu redis memcached imagick
- ];
- extraConfig = phpOptionsStr;
- };
+ phpPackage =
+ let
+ base = pkgs.php74;
+ in
+ base.buildEnv {
+ extensions = e: with e;
+ base.enabledExtensions ++ [
+ apcu redis memcached imagick
+ ];
+ extraConfig = phpOptionsStr;
+ };
toKeyValue = generators.toKeyValue {
mkKeyValue = generators.mkKeyValueDefault {} " = ";