nixos-conf/machine-confs/honeypot.nix

32 lines
520 B
Nix
Raw Normal View History

2025-01-09 21:48:09 +02:00
{ ... }:
{
networking.hostName = "honeypot";
imports = [
../base.nix
];
networking.firewall.allowedTCPPorts = [
80
];
services = {
nginx = {
enable = true;
recommendedGzipSettings = true;
virtualHosts.localhost = {
locations."/" = {
return = "200 '<html><body>It works</body></html>'";
extraConfig = ''
default_type text/html;
'';
};
};
};
};
# HARDWARE SPECIFIC
services.qemuGuest.enable = true;
}