Files
cyper-nix/nixos/server/default.nix

15 lines
261 B
Nix

{ ... }:
{
services.nginx = {
enable = true;
virtualHosts.localhost = {
locations."/" = {
return = "200 '<html><body>It works</body></html>'";
extraConfig = ''
default_type text/html;
'';
};
};
};
}