infrastructure/config/services/roundcube/default.nix
2021-09-11 00:27:59 +01:00

19 lines
518 B
Nix

{ config, lib, ... }: with lib; {
services.roundcube = {
enable = true;
hostName = "mail.${config.network.dns.domain}";
};
services.nginx.virtualHosts."mail.${config.network.dns.domain}" = {
useACMEHost = "dovecot_domains";
enableACME = mkForce false;
};
users.users.nginx.extraGroups = singleton "postfix";
deploy.tf.dns.records.services_roundcube = {
inherit (config.network.dns) zone;
domain = "mail";
cname = { inherit (config.network.addresses.public) target; };
};
}