mailsystem: Add nginx configuration to retrieve letsencrypt certificate

This commit is contained in:
Thomas Preisner 2024-11-30 19:37:23 +01:00
parent 77e4cac42d
commit 3943ec3356
2 changed files with 41 additions and 0 deletions

21
mailsystem/default.nix Normal file
View file

@ -0,0 +1,21 @@
{lib, ...}: {
options.mailsystem = {
enable = lib.mkEnableOption "nixos-mailsystem";
openFirewall = lib.mkOption {
type = lib.types.bool;
default = true;
description = "Automatically open ports in the firewall.";
};
fqdn = lib.mkOption {
type = lib.types.str;
example = "mail.example.com";
description = "Fully qualified domain name of the mail server.";
};
};
imports = [
./nginx.nix
];
}