33 lines
795 B
Nix
33 lines
795 B
Nix
{ config,pkgs,lib, ... }:
|
|
|
|
lib.mkIf (config.networking.hostName == "ThinkCentre-Server-004") {
|
|
services.roundcube = {
|
|
enable = true;
|
|
hostName = "${config.HostName}";
|
|
|
|
plugins = [ "multiple_accounts" ];
|
|
|
|
configureNginx = false;
|
|
|
|
extraConfig = ''
|
|
# PurelyMail is the entreprise who host my mail
|
|
$config['default_host'] = 'ssl://imap.purelymail.com';
|
|
$config['default_port'] = 993;
|
|
$config['smtp_server'] = 'tls://smtp.purelymail.com';
|
|
$config['smtp_port'] = 465;
|
|
$config['smtp_user'] = '%u';
|
|
$config['smtp_pass'] = '%p';
|
|
'';
|
|
};
|
|
|
|
services.nginx = {
|
|
virtualHosts."${config.HostName}" = {
|
|
listen = [
|
|
{ addr = "0.0.0.0"; port = 1984; }
|
|
];
|
|
};
|
|
};
|
|
|
|
networking.firewall.allowedTCPPorts = [ 1984 ];
|
|
|
|
}
|