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