{ config, lib, pkgs, ... }: let xok = pkgs.writeText "/data/webserver/info.php" '' ''; cfg = config.services.nginx; in { services.nginx = { enable = true; virtualHosts."default" = { root = "/data/webserver"; default = true; extraConfig = '' location ~ \.php$ { include ${cfg.package}/conf/fastcgi_params fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } ''; }; }; }