nixbld: more email setup

This commit is contained in:
Sebastien Bourdeauducq 2022-08-09 17:45:26 +08:00
parent 5f7cb6113e
commit 7dc4866314
1 changed files with 9 additions and 1 deletions

View File

@ -860,8 +860,16 @@ in
localDnsResolver = false; # conflicts with dnsmasq
fqdn = "mail.m-labs.hk";
domains = [ "m-labs.hk" ];
loginAccounts = (import /etc/nixos/secret/email_accounts.nix);
certificateScheme = 3;
} // (import /etc/nixos/secret/email_settings.nix);
services.roundcube = {
enable = true;
hostName = "mail.m-labs.hk";
extraConfig = ''
$config['smtp_server'] = "tls://${config.mailserver.fqdn}";
$config['smtp_user'] = "%u";
$config['smtp_pass'] = "%p";
'';
};
services.nextcloud = {