about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorLeroy Hopson <git@leroy.geek.nz>2015-07-04 18:51:38 +1200
committerLeroy Hopson <git@leroy.geek.nz>2016-02-27 22:25:40 +1300
commit25fd9e31a2bbbc2f907e1cae466fec347fce0f34 (patch)
treedf8edda5f7ca4c3283e856777db1afb32f1f4cb2 /nixos
parenteb90705d456d1bdd64f8e35f07e4acc34d153f5d (diff)
phpfpm service: fix formatting of example
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/web-servers/phpfpm.nix25
1 files changed, 13 insertions, 12 deletions
diff --git a/nixos/modules/services/web-servers/phpfpm.nix b/nixos/modules/services/web-servers/phpfpm.nix
index bdd41ed702b5a..1b1f3b8d5d0e3 100644
--- a/nixos/modules/services/web-servers/phpfpm.nix
+++ b/nixos/modules/services/web-servers/phpfpm.nix
@@ -52,18 +52,19 @@ in {
       poolConfigs = mkOption {
         type = types.attrsOf types.lines;
         default = {};
-        example = {
-          mypool = ''
-            listen = /run/phpfpm/mypool
-            user = nobody
-            pm = dynamic
-            pm.max_children = 75
-            pm.start_servers = 10
-            pm.min_spare_servers = 5
-            pm.max_spare_servers = 20
-            pm.max_requests = 500
-          '';
-        };
+        example = literalExample ''
+          { mypool = '''
+              listen = /run/phpfpm/mypool
+              user = nobody
+              pm = dynamic
+              pm.max_children = 75
+              pm.start_servers = 10
+              pm.min_spare_servers = 5
+              pm.max_spare_servers = 20
+              pm.max_requests = 500
+            ''';
+          }
+        '';
         description = ''
           A mapping between PHP FPM pool names and their configurations.
           See the documentation on <literal>php-fpm.conf</literal> for