diff --git a/nixos/modules/misc/documentation/modular-services.nix b/nixos/modules/misc/documentation/modular-services.nix index 07de80689658..5e004d6a8332 100644 --- a/nixos/modules/misc/documentation/modular-services.nix +++ b/nixos/modules/misc/documentation/modular-services.nix @@ -21,6 +21,7 @@ let _file = "${__curPos.file}:${toString __curPos.line}"; options = { "" = fakeSubmodule pkgs.ghostunnel.services.default; + "" = fakeSubmodule pkgs.php.services.default; }; }; in diff --git a/nixos/tests/php/default.nix b/nixos/tests/php/default.nix index 71b2c823a6de..83155ae7ad1b 100644 --- a/nixos/tests/php/default.nix +++ b/nixos/tests/php/default.nix @@ -13,6 +13,10 @@ in imports = [ ./fpm.nix ]; _module.args.php = php'; }; + fpm-modular = runTest { + imports = [ ./fpm-modular.nix ]; + _module.args.php = php'; + }; httpd = runTest { imports = [ ./httpd.nix ]; _module.args.php = php'; diff --git a/nixos/tests/php/fpm-modular.nix b/nixos/tests/php/fpm-modular.nix new file mode 100644 index 000000000000..cd95bbd7e098 --- /dev/null +++ b/nixos/tests/php/fpm-modular.nix @@ -0,0 +1,71 @@ +{ lib, php, ... }: +{ + name = "php-${php.version}-fpm-modular-nginx-test"; + meta.maintainers = with lib.maintainers; [ + aanderse + ]; + + nodes.machine = + { config, pkgs, ... }: + { + environment.systemPackages = [ php ]; + + services.nginx = { + enable = true; + + virtualHosts."phpfpm" = + let + testdir = pkgs.writeTextDir "web/index.php" "