{ config, pkgs, hostName, ... }: { # Set hostname (passed as parameter) networking.hostName = hostName; # System packages environment.systemPackages = with pkgs; [ vim git htop ]; # Enable SSH services.openssh.enable = true; # Enable and configure nginx services.nginx = { enable = true; virtualHosts."${hostName}" = { root = "/var/src/web-app-dist"; locations."/" = { index = "index.html"; }; }; }; # Open firewall for HTTP/HTTPS networking.firewall.allowedTCPPorts = [ 80 443 ]; # NixOS release version system.stateVersion = "25.05"; }