forked from Zynh0722/permafrost
17 lines
323 B
Nix
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 ];
|
|
};
|
|
}
|