nixos-config/hosts/falkenstein/modules/mail/default.nix

25 lines
385 B
Nix
Raw Normal View History

2024-03-12 17:07:33 +01:00
{ config, ... }:
2023-07-05 15:55:17 +02:00
let
2024-03-12 17:07:33 +01:00
domain = "mail.${config.networking.domain}";
2023-07-05 15:55:17 +02:00
in
2023-05-24 15:51:58 +02:00
{
2024-03-12 17:07:33 +01:00
imports = [
./postfix.nix
./dovecot2.nix
./rspamd.nix
2023-07-05 15:55:17 +02:00
];
security.acme.certs."${domain}" = {
reloadServices = [
"postfix.service"
"dovecot2.service"
];
2023-05-24 15:51:58 +02:00
};
2023-07-05 15:55:17 +02:00
services.nginx.virtualHosts = {
2024-03-12 17:07:33 +01:00
"${domain}" = {
2023-07-05 15:55:17 +02:00
enableACME = true;
forceSSL = true;
};
2023-10-26 12:12:45 +02:00
};
2023-05-24 15:51:58 +02:00
}