2024-03-12 11:34:16 +01:00
|
|
|
{ config, ... }:
|
2022-12-17 21:33:45 +01:00
|
|
|
let
|
2023-09-17 20:10:55 +02:00
|
|
|
hostname = "mail.${config.networking.domain}";
|
2022-12-17 21:33:45 +01:00
|
|
|
in
|
|
|
|
{
|
2024-03-12 11:34:16 +01:00
|
|
|
imports = [
|
|
|
|
./postfix.nix
|
|
|
|
./dovecot2.nix
|
|
|
|
./rspamd.nix
|
|
|
|
./sogo.nix
|
|
|
|
./mailman.nix
|
2023-07-03 18:22:37 +02:00
|
|
|
];
|
2023-09-03 22:21:16 +02:00
|
|
|
|
2024-03-12 11:34:16 +01:00
|
|
|
security.acme.certs."${hostname}" = {
|
2023-05-25 22:43:16 +02:00
|
|
|
reloadServices = [
|
|
|
|
"postfix.service"
|
|
|
|
"dovecot2.service"
|
|
|
|
];
|
|
|
|
};
|
2022-12-17 21:33:45 +01:00
|
|
|
}
|