diff --git a/anythingforafriend/etc/nixos/configuration.nix b/anythingforafriend/etc/nixos/configuration.nix index 382440f..0d69b2f 100644 --- a/anythingforafriend/etc/nixos/configuration.nix +++ b/anythingforafriend/etc/nixos/configuration.nix @@ -38,21 +38,26 @@ enable = true; network.enable = false; }; - services.phpfpm.pools.anythingforafriend = { - user = "www-data"; - settings = { - "listen.owner" = config.services.nginx.user; - "pm" = "dynamic"; - "pm.max_children" = 32; - "pm.max_requests" = 500; - "pm.start_servers" = 2; - "pm.min_spare_servers" = 2; - "pm.max_spare_servers" = 5; - "php_admin_value[error_log]" = "stderr"; - "php_admin_flag[log_errors]" = true; - "catch_workers_output" = true; + services.phpfpm = { + phpOptions = '' + display_errors = on; + ''; + pools.anythingforafriend = { + user = "www-data"; + settings = { + "listen.owner" = config.services.nginx.user; + "pm" = "dynamic"; + "pm.max_children" = 32; + "pm.max_requests" = 500; + "pm.start_servers" = 2; + "pm.min_spare_servers" = 2; + "pm.max_spare_servers" = 5; + "php_admin_value[error_log]" = "stderr"; + "php_admin_flag[log_errors]" = true; + "catch_workers_output" = true; + }; + phpEnv."PATH" = lib.makeBinPath [ pkgs.php ]; }; - phpEnv."PATH" = lib.makeBinPath [ pkgs.php ]; }; services.nginx = { enable = true;