diff --git a/module.nix b/module.nix index 5ec0ece..a3942e4 100644 --- a/module.nix +++ b/module.nix @@ -1,2 +1,29 @@ -{ services.getty.autologinUser = "root"; +{ pkgs, ... }: { + services = { + getty.autologinUser = "root"; + nginx = { + enable = true; + virtualHosts.localhost.locations."/" = { + index = "index.html"; + + root = pkgs.writeTextDir "index.html" '' + + + Hello World! + + + ''; + }; + }; + }; + + networking.firewall.allowedTCPPorts = [ 80 ]; + + virtualisation.forwardPorts = [{ + from = "host"; + guest.port = 80; + host.port = 8080; + }]; + + system.stateVersion = "23.11"; }