23 lines
477 B
Nix
23 lines
477 B
Nix
{ pkgs, ... }:
|
|
let
|
|
domain = "mail-test.cloonar.com";
|
|
in
|
|
{
|
|
services.roundcube = {
|
|
enable = true;
|
|
hostName = "${domain}";
|
|
extraConfig = ''
|
|
$config['imap_host'] = 'tls://imap-test.cloonar.com';
|
|
$config['smtp_server'] = "tls://mail-test.cloonar.com";
|
|
$config['smtp_user'] = "%u";
|
|
$config['smtp_pass'] = "%p";
|
|
'';
|
|
};
|
|
|
|
services.nginx.virtualHosts."${domain}" = {
|
|
forceSSL = true;
|
|
enableACME = true;
|
|
acmeRoot = null;
|
|
};
|
|
}
|