diff --git a/nixos/modules/services/web-servers/phpfpm/default.nix b/nixos/modules/services/web-servers/phpfpm/default.nix
index 5c650210f9f9..e424080ab1f7 100644
--- a/nixos/modules/services/web-servers/phpfpm/default.nix
+++ b/nixos/modules/services/web-servers/phpfpm/default.nix
@@ -65,8 +65,8 @@ in {
phpPackage = mkOption {
type = types.package;
- default = pkgs.php;
- defaultText = "pkgs.php";
+ default = fpmCfg.phpPackage;
+ defaultText = "config.services.phpfpm.phpPackage";
description = ''
The PHP package to use for running this PHP-FPM pool.
'';
@@ -74,9 +74,10 @@ in {
phpOptions = mkOption {
type = types.lines;
- default = "";
+ default = fpmCfg.phpOptions;
+ defaultText = "config.services.phpfpm.phpOptions";
description = ''
- Options appended to the PHP configuration file php.ini used for this PHP-FPM pool.
+ "Options appended to the PHP configuration file php.ini used for this PHP-FPM pool."
'';
};