feat(vesuvio): add roundcube
This commit is contained in:
parent
92f3f0e0ca
commit
e3a513794a
6 changed files with 59 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
|||
imports = [
|
||||
./maddy.nix
|
||||
./mta-sts.nix
|
||||
./roundcube.nix
|
||||
./rspamd.nix
|
||||
];
|
||||
}
|
||||
|
|
38
systems/vesuvio/mail/roundcube.nix
Normal file
38
systems/vesuvio/mail/roundcube.nix
Normal 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';
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue