Make sure to keep transient mail data over boots

This commit is contained in:
Charlotte Van Petegem 2022-03-06 05:05:50 +01:00
parent 9d5e943468
commit e36b662279
No known key found for this signature in database
GPG key ID: 019E764B7184435A

View file

@ -8,6 +8,15 @@ in
options.chvp.services.mail.enable = lib.mkEnableOption "mail";
config = lib.mkIf config.chvp.services.mail.enable {
chvp.base.zfs.systemLinks = [
{ path = "/var/lib/dhparams"; type = "cache"; }
{ path = "/var/lib/dovecot"; type = "cache"; }
{ path = "/var/lib/knot-resolver"; type = "cache"; }
{ path = "/var/lib/opendkim"; type = "cache"; }
{ path = "/var/lib/postfix"; type = "cache"; }
{ path = "/var/lib/redis-rspamd"; type = "cache"; }
{ path = "/var/lib/rspamd"; type = "cache"; }
];
mailserver = {
enable = true;
fqdn = "mail.vanpetegem.me";