mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
nixos/moodle: use php80 and update extensions
This commit is contained in:
parent
bc8f00427a
commit
22a5797173
1 changed files with 5 additions and 2 deletions
|
@ -56,8 +56,10 @@ let
|
|||
mysqlLocal = cfg.database.createLocally && cfg.database.type == "mysql";
|
||||
pgsqlLocal = cfg.database.createLocally && cfg.database.type == "pgsql";
|
||||
|
||||
phpExt = pkgs.php81.withExtensions
|
||||
({ enabled, all }: with all; [ iconv mbstring curl openssl tokenizer xmlrpc soap ctype zip gd simplexml dom intl json sqlite3 pgsql pdo_sqlite pdo_pgsql pdo_odbc pdo_mysql pdo mysqli session zlib xmlreader fileinfo filter opcache ]);
|
||||
phpExt = pkgs.php80.buildEnv {
|
||||
extensions = { all, ... }: with all; [ iconv mbstring curl openssl tokenizer soap ctype zip gd simplexml dom intl sqlite3 pgsql pdo_sqlite pdo_pgsql pdo_odbc pdo_mysql pdo mysqli session zlib xmlreader fileinfo filter opcache exif sodium ];
|
||||
extraConfig = "max_input_vars = 5000";
|
||||
};
|
||||
in
|
||||
{
|
||||
# interface
|
||||
|
@ -230,6 +232,7 @@ in
|
|||
phpOptions = ''
|
||||
zend_extension = opcache.so
|
||||
opcache.enable = 1
|
||||
max_input_vars = 5000
|
||||
'';
|
||||
settings = {
|
||||
"listen.owner" = config.services.httpd.user;
|
||||
|
|
Loading…
Reference in a new issue