# Run with: # nix-build -A nixosTests.php.fpm-modular { 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" "