33 lines
1.0 KiB
Nix
33 lines
1.0 KiB
Nix
{ config, lib, pkgs, ... }: {
|
|
secrets.roundcube-db-pass = {
|
|
owner = "roundcube";
|
|
};
|
|
services.roundcube = {
|
|
enable = true;
|
|
database.passwordFile = config.secrets.roundcube-db-pass.decrypted;
|
|
database.username = "roundcube";
|
|
dicts = with pkgs.aspellDicts; [ en ru ];
|
|
extraConfig = ''
|
|
$config['default_host'] = array(
|
|
'tls://mail.ataraxiadev.com' => "AtaraxiaDev's Mail Server",
|
|
'ssl://imap.gmail.com:993' => 'Google Mail',
|
|
);
|
|
$config['username_domain'] = array(
|
|
'mail.ataraxiadev.com' => 'ataraxiadev.com',
|
|
'mail.gmail.com' => 'gmail.com',
|
|
);
|
|
$config['x_frame_options'] = false;
|
|
'';
|
|
hostName = "webmail.ataraxiadev.com";
|
|
maxAttachmentSize = 25;
|
|
plugins = [ "carddav" "persistent_login" ];
|
|
package = pkgs.roundcube.withPlugins (plugins:
|
|
with plugins; [ carddav persistent_login ]
|
|
);
|
|
};
|
|
|
|
services.phpfpm.pools.roundcube.settings = {
|
|
"listen.owner" = config.services.nginx.user;
|
|
"listen.group" = config.services.nginx.group;
|
|
};
|
|
} |