NixServerConfig/module/roundcube.nix
Wateir d4d7073344 Add of vaulwarden
Some refractoring and start of a more versatil config
2025-12-17 23:11:49 +01:00

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 ];
}