nix-config/configs/nixos/nginx.nix
Gabe Venberg 42ee66e4a6 GNU Dean Hansen
Didnt think Id have to put the name of a close friend in there for a
long, long time, but here we are...
2026-02-17 23:28:49 +01:00

26 lines
649 B
Nix

{
inputs,
config,
pkgs,
lib,
...
}: {
services.nginx = {
enable = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
commonHttpConfig = ''
add_header X-Clacks-Overhead "GNU Terry Pratchett";
add_header X-Clacks-Overhead "GNU Bram Moolenaar";
add_header X-Clacks-Overhead "GNU Ken Bartz";
add_header X-Clacks-Overhead "GNU Dean Hansen";
'';
# other Nginx options
};
security.acme = {
acceptTerms = true;
defaults.email = "gabevenberg@gmail.com";
defaults.webroot = "/var/lib/acme/acme-challenge/";
};
networking.firewall.allowedTCPPorts = [443 80];
}