23 lines
411 B
Nix
23 lines
411 B
Nix
{ pkgs, ... }: {
|
|
services = {
|
|
getty.autologinUser = "root";
|
|
nginx = {
|
|
enable = true;
|
|
virtualHosts.localhost.locations."/" = {
|
|
index = "index.html";
|
|
|
|
root = ./www;
|
|
};
|
|
};
|
|
};
|
|
|
|
networking.firewall.allowedTCPPorts = [ 80 ];
|
|
|
|
virtualisation.forwardPorts = [{
|
|
from = "host";
|
|
guest.port = 80;
|
|
host.port = 8080;
|
|
}];
|
|
|
|
system.stateVersion = "23.11";
|
|
}
|