Keep dhparams so we don't have to regenerate

This commit is contained in:
niten 2023-09-26 23:16:00 -07:00
parent d8976486dc
commit 1ac5d81fc3
1 changed files with 5 additions and 3 deletions

View File

@ -250,9 +250,10 @@ in {
};
systemd.tmpfiles.rules = [
"d ${cfg.state-directory}/dovecot 0700 - - - -"
"d ${cfg.state-directory}/antivirus 0700 - - - -"
"d ${cfg.state-directory}/dkim 0700 - - - -"
"d ${cfg.state-directory}/dovecot 0700 - - - -"
"d ${cfg.state-directory}/dovecot-dhparams 0700 - - - -"
"d ${cfg.state-directory}/antivirus 0700 - - - -"
"d ${cfg.state-directory}/dkim 0700 - - - -"
];
virtualisation.arion.projects.mail-server.settings = let
@ -343,6 +344,7 @@ in {
"${cfg.state-directory}/dovecot:/state"
"${hostSecrets.dovecotLdapConfig.target-file}:/run/dovecot2/conf.d/ldap.conf:ro"
"${cfg.imap.ssl-directory}:/run/certs/imap"
"${cfg.state-directory}/dovecot-dhparams:/var/lib/dhparams"
];
depends_on = [ "antispam" "ldap-proxy" ];
};