From 7dc486631465e138f58c23fca18eb88f5376b862 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 9 Aug 2022 17:45:26 +0800 Subject: [PATCH] nixbld: more email setup --- nixbld-etc-nixos/configuration.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/nixbld-etc-nixos/configuration.nix b/nixbld-etc-nixos/configuration.nix index ed085e18..474bbaaf 100644 --- a/nixbld-etc-nixos/configuration.nix +++ b/nixbld-etc-nixos/configuration.nix @@ -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 = {