1
0
Fork 0
permafrost/modules/nginx.nix

19 lines
404 B
Nix
Raw Normal View History

2024-12-27 05:42:42 -08:00
{ lib, config, ... }:
let
cfg = config.permafrost.nginx;
in
{
options.permafrost.nginx = {
enable = lib.mkEnableOption "nginx nixos module";
};
config = lib.mkIf cfg.enable {
services.nginx.enable = true;
security.acme.acceptTerms = true;
2024-12-27 06:28:56 -08:00
# TODO: security.acme.certs + services.nginx.virtualHosts.<name>.useACMEHost
2024-12-27 05:42:42 -08:00
networking.firewall.allowedTCPPorts = [ 80 443 ];
};
}