nix-config/modules/website/default.nix
2025-02-07 17:28:14 +01:00

20 lines
381 B
Nix

{ lib, config, ... }: let
inherit (lib) mkIf;
inherit (config) conf;
in mkIf conf.website.enable {
services.nginx.virtualHosts = {
"twoneis.site" = {
serverName = "twoneis.site";
forceSSL = false;
locations = {
"/" = {
return = "200 \"faggot\"";
};
};
};
};
networking.firewall.allowedTCPPorts = [
80
];
}