{pkgs, lib, config, ...}: { networking.firewall.allowedTCPPorts = [ 80 443 ]; services.nginx = { enable = true; httpConfig = '' index index.html; server { listen 80 default_server; server_name _; server_name_in_redirect off; root /var/www/test; } ''; }; }