might fix things

fixed up a few issues
This commit is contained in:
evanc 2023-07-24 19:02:19 +00:00 committed by Brendan Golden
parent dbbbd7a882
commit 9ad8c96558

View file

@ -131,13 +131,16 @@
"${cfg.sub}.${cfg.domain}" = { "${cfg.sub}.${cfg.domain}" = {
forceSSL = true; forceSSL = true;
useACMEHost = "skynet"; useACMEHost = "skynet";
enableACME = false;
serverName = "${cfg.sub}.${cfg.domain}"; serverName = "${cfg.sub}.${cfg.domain}";
}; };
}; };
#https://nixos-mailserver.readthedocs.io/en/latest/add-roundcube.html #https://nixos-mailserver.readthedocs.io/en/latest/add-roundcube.html
users.groups.nginx = {};
services.roundcube = { services.roundcube = {
enable = true; enable = true;
database.username = "roundcube";
# this is the url of the vhost, not necessarily the same as the fqdn of # this is the url of the vhost, not necessarily the same as the fqdn of
# the mailserver # the mailserver
hostName = "${cfg.sub}.${cfg.domain}"; hostName = "${cfg.sub}.${cfg.domain}";
@ -148,7 +151,7 @@
$config['smtp_user'] = "%u"; $config['smtp_user'] = "%u";
$config['smtp_pass'] = "%p"; $config['smtp_pass'] = "%p";
''; '';
} };
# systemd.services.dovecot2.serviceConfig = { # systemd.services.dovecot2.serviceConfig = {
# # restart it daily, override default values # # restart it daily, override default values
# Restart = lib.mkForce "always"; # Restart = lib.mkForce "always";