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 ];
|
|
|
|
};
|
|
|
|
}
|