NixServerConfig/module/roundcube.nix
2025-12-21 20:37:17 +01:00

24 lines
655 B
Nix

{ config, pkgs, lib, ... }:
lib.mkIf config.sROUNDCUBE.enable {
services.roundcube = {
enable = true;
hostName = "${config.HostName}";
plugins = [ "multiple_accounts" ];
configureNginx = false;
extraConfig = ''
# PurelyMail configuration
$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" ];
}