services/mail: weh

This commit is contained in:
kat witch 2021-09-11 00:27:59 +01:00
parent 94caeae756
commit 9c73f4b41f
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
4 changed files with 12 additions and 2 deletions

View file

@ -1,9 +1,16 @@
{ config, ... }: {
{ 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";