@@ -42,7 +42,7 @@ in {
4242 default = "";
4343 description = ''
4444 Extra configuration that should be put in the global section of
45− the PHP FPM configuration file. Do not specify the options
45+ the PHP-FPM configuration file. Do not specify the options
4646 <literal>pid</literal>, <literal>error_log</literal> or
4747 <literal>daemonize</literal> here, since they are generated by
4848 NixOS.
@@ -54,7 +54,7 @@ in {
5454 default = pkgs.php;
5555 defaultText = "pkgs.php";
5656 description = ''
57− The PHP package to use for running the FPM service.
57+ The PHP package to use for running the PHP-FPM service.
5858 '';
5959 };
6060
@@ -86,7 +86,7 @@ in {
8686 }
8787 '';
8888 description = ''
89− A mapping between PHP FPM pool names and their configurations.
89+ A mapping between PHP-FPM pool names and their configurations.
9090 See the documentation on <literal>php-fpm.conf</literal> for
9191 details on configuration directives. If no pools are defined,
9292 the phpfpm service is disabled.
@@ -98,8 +98,24 @@ in {
9898 inherit lib;
9999 }));
100100 default = {};
101+ example = literalExample ''
102+ {
103+ mypool = {
104+ listen = "/path/to/unix/socket";
105+ extraConfig = '''
106+ user = nobody
107+ pm = dynamic
108+ pm.max_children = 75
109+ pm.start_servers = 10
110+ pm.min_spare_servers = 5
111+ pm.max_spare_servers = 20
112+ pm.max_requests = 500
113+ ''';
114+ }
115+ }'';
101116 description = ''
102− If no pools are defined, the phpfpm service is disabled.
117+ PHP-FPM pools. If no pools or poolConfigs are defined, the PHP-FPM
118+ service is disabled.
103119 '';
104120 };
105121 };