26 lines
708 B
Nix
26 lines
708 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';
|
|
'';
|
|
};
|
|
|
|
systemd.services.nginx.serviceConfig.ProtectHome = false;
|
|
users.groups.roundcube.members = [ "nginx" ];
|
|
|
|
}
|