diff --git a/machine-confs/honeypot.nix b/machine-confs/honeypot.nix new file mode 100644 index 0000000..822a742 --- /dev/null +++ b/machine-confs/honeypot.nix @@ -0,0 +1,31 @@ +{ ... }: +{ + networking.hostName = "honeypot"; + + imports = [ + ../base.nix + ]; + + networking.firewall.allowedTCPPorts = [ + 80 + ]; + + services = { + nginx = { + enable = true; + recommendedGzipSettings = true; + + virtualHosts.localhost = { + locations."/" = { + return = "200 'It works'"; + extraConfig = '' + default_type text/html; + ''; + }; + }; + }; + }; + + # HARDWARE SPECIFIC + services.qemuGuest.enable = true; +}