nix/nixos/hosts/nixos-rpi4-03/temp.nix
2023-10-08 10:58:21 +09:00

16 lines
No EOL
393 B
Nix

{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;
}
'';
};
}