1
0
Fork 0
permafrost/modules/nginx.nix
2024-12-27 06:03:33 -08:00

17 lines
323 B
Nix

{ 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;
networking.firewall.allowedTCPPorts = [ 80 443 ];
};
}