nixos-config/profiles/servers/roundcube.nix

29 lines
926 B
Nix
Raw Normal View History

2022-03-22 06:01:10 +03:00
{ config, lib, pkgs, ... }: {
services.roundcube = {
enable = true;
database.username = "roundcube";
dicts = with pkgs.aspellDicts; [ en ru ];
extraConfig = ''
$config['default_host'] = array(
2022-04-04 14:53:28 +03:00
'tls://mail.ataraxiadev.com' => "AtaraxiaDev's Mail Server",
'ssl://imap.gmail.com:993' => 'Google Mail',
2022-03-22 06:01:10 +03:00
);
$config['username_domain'] = array(
2022-04-04 14:53:28 +03:00
'mail.ataraxiadev.com' => 'ataraxiadev.com',
'mail.gmail.com' => 'gmail.com',
2022-03-22 06:01:10 +03:00
);
2022-04-04 14:53:28 +03:00
$config['x_frame_options'] = false;
2022-03-22 06:01:10 +03:00
'';
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;
};
}