module(wp): prefix pm for element

This commit is contained in:
Raito Bezarius 2021-11-22 22:28:17 +01:00
parent d91cc414e0
commit 63ed846f8f

View file

@ -1,4 +1,7 @@
{ pkgs, config, phpFpmListen, processSettings, phpPackage }: { pkgs, config, phpFpmListen, processSettings, phpPackage }:
let
lib = pkgs.lib;
in
{ {
inherit (config.services.nginx) user group; inherit (config.services.nginx) user group;
inherit phpPackage; inherit phpPackage;
@ -8,6 +11,6 @@
"listen.mode" = 660; "listen.mode" = 660;
"pm" = "dynamic"; "pm" = "dynamic";
"catch_workers_output" = "yes"; "catch_workers_output" = "yes";
} // (processSettings.__unfix__ processSettings); # obscure magic. } // lib.mapAttrs' (name: v: lib.nameValuePair "pm.${name}" v) (processSettings.__unfix__ processSettings); # obscure magic.
listen = phpFpmListen; listen = phpFpmListen;
} }