aboutsummaryrefslogtreecommitdiff
path: root/modules/private/websites/tools
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2020-05-08 00:43:13 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2020-05-08 00:43:13 +0200
commitf5761aac8dbfb4af91c232f2b52d1353c899abda (patch)
treede7b4dea5c75b5c34943e2b75980c7bf040676df /modules/private/websites/tools
parentdcac3ec730176549cd52a9a42db2001dc652c30d (diff)
downloadNix-f5761aac8dbfb4af91c232f2b52d1353c899abda.tar.gz
Nix-f5761aac8dbfb4af91c232f2b52d1353c899abda.tar.zst
Nix-f5761aac8dbfb4af91c232f2b52d1353c899abda.zip
Upgrade to latest nixos
Diffstat (limited to 'modules/private/websites/tools')
-rw-r--r--modules/private/websites/tools/cloud/default.nix10
-rw-r--r--modules/private/websites/tools/mail/default.nix3
-rw-r--r--modules/private/websites/tools/tools/default.nix11
3 files changed, 4 insertions, 20 deletions
diff --git a/modules/private/websites/tools/cloud/default.nix b/modules/private/websites/tools/cloud/default.nix
index 73a837f..0c6bf0d 100644
--- a/modules/private/websites/tools/cloud/default.nix
+++ b/modules/private/websites/tools/cloud/default.nix
@@ -10,11 +10,6 @@ let
10 basedir = builtins.concatStringsSep ":" ( 10 basedir = builtins.concatStringsSep ":" (
11 [ nextcloud varDir ] 11 [ nextcloud varDir ]
12 ++ builtins.attrValues pkgs.webapps.nextcloud-apps); 12 ++ builtins.attrValues pkgs.webapps.nextcloud-apps);
13 phpConfig = ''
14 extension=${pkgs.php72Packages.redis}/lib/php/extensions/redis.so
15 extension=${pkgs.php72Packages.apcu}/lib/php/extensions/apcu.so
16 zend_extension=${pkgs.php72}/lib/php/extensions/opcache.so
17 '';
18 pool = { 13 pool = {
19 "listen.owner" = "wwwrun"; 14 "listen.owner" = "wwwrun";
20 "listen.group" = "wwwrun"; 15 "listen.group" = "wwwrun";
@@ -38,7 +33,7 @@ let
38 "php_admin_value[open_basedir]" = "/run/wrappers/bin/sendmail:${basedir}:/proc/meminfo:/dev/urandom:/proc/self/fd:/tmp"; 33 "php_admin_value[open_basedir]" = "/run/wrappers/bin/sendmail:${basedir}:/proc/meminfo:/dev/urandom:/proc/self/fd:/tmp";
39 "php_admin_value[session.save_path]" = "${varDir}/phpSessions"; 34 "php_admin_value[session.save_path]" = "${varDir}/phpSessions";
40 }; 35 };
41 phpPackage = pkgs.php72; 36 phpPackage = pkgs.php72.withExtensions(e: pkgs.php72.enabledExtensions ++ [ e.redis e.apcu e.opcache ]);
42 }; 37 };
43in { 38in {
44 options.myServices.websites.tools.cloud = { 39 options.myServices.websites.tools.cloud = {
@@ -172,8 +167,7 @@ in {
172 user = "wwwrun"; 167 user = "wwwrun";
173 group = "wwwrun"; 168 group = "wwwrun";
174 settings = phpFpm.pool; 169 settings = phpFpm.pool;
175 phpOptions = config.services.phpfpm.phpOptions + phpFpm.phpConfig; 170 phpPackage = pkgs.php72.withExtensions(e: pkgs.php72.enabledExtensions ++ [ e.redis e.apcu e.opcache ]);
176 phpPackage = pkgs.php72;
177 }; 171 };
178 172
179 services.cron = { 173 services.cron = {
diff --git a/modules/private/websites/tools/mail/default.nix b/modules/private/websites/tools/mail/default.nix
index 217ef1a..7d7904f 100644
--- a/modules/private/websites/tools/mail/default.nix
+++ b/modules/private/websites/tools/mail/default.nix
@@ -64,9 +64,8 @@ in
64 settings = roundcubemail.phpFpm.pool; 64 settings = roundcubemail.phpFpm.pool;
65 phpOptions = config.services.phpfpm.phpOptions + '' 65 phpOptions = config.services.phpfpm.phpOptions + ''
66 date.timezone = 'CET' 66 date.timezone = 'CET'
67 extension=${pkgs.php72Packages.imagick}/lib/php/extensions/imagick.so
68 ''; 67 '';
69 phpPackage = pkgs.php72; 68 phpPackage = pkgs.php72.withExtensions(e: pkgs.php72.enabledExtensions ++ [ e.imagick ]);
70 }; 69 };
71 services.phpfpm.pools.rainloop = { 70 services.phpfpm.pools.rainloop = {
72 user = "wwwrun"; 71 user = "wwwrun";
diff --git a/modules/private/websites/tools/tools/default.nix b/modules/private/websites/tools/tools/default.nix
index dcda15a..bffcf84 100644
--- a/modules/private/websites/tools/tools/default.nix
+++ b/modules/private/websites/tools/tools/default.nix
@@ -317,13 +317,7 @@ in {
317 317
318 "php_admin_value[open_basedir]" = "/run/wrappers/bin/sendmail:/var/lib/ftp/devtools.immae.eu:/tmp"; 318 "php_admin_value[open_basedir]" = "/run/wrappers/bin/sendmail:/var/lib/ftp/devtools.immae.eu:/tmp";
319 }; 319 };
320 phpOptions = config.services.phpfpm.phpOptions + '' 320 phpPackage = pkgs.php72.withExtensions(e: pkgs.php72.enabledExtensions ++ [e.mysqli e.redis e.apcu e.opcache ]);
321 extension=${pkgs.php72}/lib/php/extensions/mysqli.so
322 extension=${pkgs.php72Packages.redis}/lib/php/extensions/redis.so
323 extension=${pkgs.php72Packages.apcu}/lib/php/extensions/apcu.so
324 zend_extension=${pkgs.php72}/lib/php/extensions/opcache.so
325 '';
326 phpPackage = pkgs.php72;
327 }; 321 };
328 adminer = adminer.phpFpm; 322 adminer = adminer.phpFpm;
329 ttrss = { 323 ttrss = {
@@ -361,9 +355,6 @@ in {
361 group = "wwwrun"; 355 group = "wwwrun";
362 settings = dmarc-reports.phpFpm.pool; 356 settings = dmarc-reports.phpFpm.pool;
363 phpEnv = dmarc-reports.phpFpm.phpEnv; 357 phpEnv = dmarc-reports.phpFpm.phpEnv;
364 phpOptions = config.services.phpfpm.phpOptions + ''
365 extension=${pkgs.php72}/lib/php/extensions/mysqli.so
366 '';
367 phpPackage = pkgs.php72; 358 phpPackage = pkgs.php72;
368 }; 359 };
369 dokuwiki = { 360 dokuwiki = {