summary refs log tree commit diff
path: root/nixos/modules/services/web-apps/icingaweb2
diff options
context:
space:
mode:
authorAaron Andersen <aaron@fosslib.net>2019-07-03 12:11:38 -0400
committerAaron Andersen <aaron@fosslib.net>2019-08-23 07:54:51 -0400
commit0ce8317c469872bcb4aed577477676d4148aa1a6 (patch)
treea0cadfe603dcf68d4bfe67409949ad0000858137 /nixos/modules/services/web-apps/icingaweb2
parent8f8d9abca4d553f1416c179419f96eba88f36141 (diff)
downloadnixpkgs-0ce8317c469872bcb4aed577477676d4148aa1a6.tar
nixpkgs-0ce8317c469872bcb4aed577477676d4148aa1a6.tar.gz
nixpkgs-0ce8317c469872bcb4aed577477676d4148aa1a6.tar.bz2
nixpkgs-0ce8317c469872bcb4aed577477676d4148aa1a6.tar.lz
nixpkgs-0ce8317c469872bcb4aed577477676d4148aa1a6.tar.xz
nixpkgs-0ce8317c469872bcb4aed577477676d4148aa1a6.tar.zst
nixpkgs-0ce8317c469872bcb4aed577477676d4148aa1a6.zip
nixos/phpfpm: deprecate poolConfigs option
Diffstat (limited to 'nixos/modules/services/web-apps/icingaweb2')
-rw-r--r--nixos/modules/services/web-apps/icingaweb2/icingaweb2.nix28
1 files changed, 15 insertions, 13 deletions
diff --git a/nixos/modules/services/web-apps/icingaweb2/icingaweb2.nix b/nixos/modules/services/web-apps/icingaweb2/icingaweb2.nix
index 6740131dccd..4c7736b8887 100644
--- a/nixos/modules/services/web-apps/icingaweb2/icingaweb2.nix
+++ b/nixos/modules/services/web-apps/icingaweb2/icingaweb2.nix
@@ -164,19 +164,21 @@ in {
   };
 
   config = mkIf cfg.enable {
-    services.phpfpm.poolConfigs = mkIf (cfg.pool == "${poolName}") {
-      "${poolName}" = ''
-        listen = "${phpfpmSocketName}"
-        listen.owner = nginx
-        listen.group = nginx
-        listen.mode = 0600
-        user = icingaweb2
-        pm = dynamic
-        pm.max_children = 75
-        pm.start_servers = 2
-        pm.min_spare_servers = 2
-        pm.max_spare_servers = 10
-      '';
+    services.phpfpm.pools = mkIf (cfg.pool == "${poolName}") {
+      "${poolName}" = {
+        listen = phpfpmSocketName;
+        extraConfig = ''
+          listen.owner = nginx
+          listen.group = nginx
+          listen.mode = 0600
+          user = icingaweb2
+          pm = dynamic
+          pm.max_children = 75
+          pm.start_servers = 2
+          pm.min_spare_servers = 2
+          pm.max_spare_servers = 10
+        '';
+      };
     };
 
     services.phpfpm.phpOptions = mkIf (cfg.pool == "${poolName}")