feat(vesuvio): add roundcube

This commit is contained in:
uku 2025-01-08 10:20:49 +01:00
parent 92f3f0e0ca
commit e3a513794a
Signed by: uku
SSH key fingerprint: SHA256:4P0aN6M8ajKukNi6aPOaX0LacanGYtlfjmN+m/sHY/o
6 changed files with 59 additions and 0 deletions

View file

@ -2,6 +2,7 @@
imports = [
./maddy.nix
./mta-sts.nix
./roundcube.nix
./rspamd.nix
];
}

View file

@ -0,0 +1,38 @@
{
pkgs,
config,
_utils,
...
}:
let
dbPass = _utils.setupSingleSecret config "roundcubeDbPass" {
owner = "nginx";
};
in
{
imports = [ dbPass.generate ];
services = {
roundcube = {
enable = true;
hostName = "mail.uku3lig.net";
dicts = with pkgs.aspellDicts; [
en
fr
];
# nginx is automatically configured, ssl and acme are enabled
database = {
host = "etna";
dbname = "roundcube";
username = "roundcube";
passwordFile = dbPass.path;
};
extraConfig = ''
$config['imap_host'] = 'ssl://mx1.uku3lig.net:993';
'';
};
};
}