diff options
Diffstat (limited to 'modules/private/mail')
-rw-r--r-- | modules/private/mail/default.nix | 2 | ||||
-rw-r--r-- | modules/private/mail/dovecot.nix | 2 | ||||
-rw-r--r-- | modules/private/mail/postfix.nix | 2 | ||||
-rw-r--r-- | modules/private/mail/relay.nix | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/modules/private/mail/default.nix b/modules/private/mail/default.nix index b50e346..1c64e15 100644 --- a/modules/private/mail/default.nix +++ b/modules/private/mail/default.nix | |||
@@ -13,7 +13,7 @@ | |||
13 | options.myServices.mailBackup.enable = lib.mkEnableOption "enable MX backup services"; | 13 | options.myServices.mailBackup.enable = lib.mkEnableOption "enable MX backup services"; |
14 | 14 | ||
15 | config = lib.mkIf config.myServices.mail.enable { | 15 | config = lib.mkIf config.myServices.mail.enable { |
16 | security.acme.certs."mail" = config.myServices.certificates.certConfig // { | 16 | security.acme2.certs."mail" = config.myServices.certificates.certConfig // { |
17 | domain = config.hostEnv.fqdn; | 17 | domain = config.hostEnv.fqdn; |
18 | extraDomains = let | 18 | extraDomains = let |
19 | zonesWithMx = builtins.filter (zone: | 19 | zonesWithMx = builtins.filter (zone: |
diff --git a/modules/private/mail/dovecot.nix b/modules/private/mail/dovecot.nix index 4facef5..523c017 100644 --- a/modules/private/mail/dovecot.nix +++ b/modules/private/mail/dovecot.nix | |||
@@ -269,7 +269,7 @@ in | |||
269 | [ | 269 | [ |
270 | "0 2 * * * root ${cron_script}/bin/cleanup-imap-folders" | 270 | "0 2 * * * root ${cron_script}/bin/cleanup-imap-folders" |
271 | ]; | 271 | ]; |
272 | security.acme.certs."mail" = { | 272 | security.acme2.certs."mail" = { |
273 | postRun = '' | 273 | postRun = '' |
274 | systemctl restart dovecot2.service | 274 | systemctl restart dovecot2.service |
275 | ''; | 275 | ''; |
diff --git a/modules/private/mail/postfix.nix b/modules/private/mail/postfix.nix index bd284cb..8fe06da 100644 --- a/modules/private/mail/postfix.nix +++ b/modules/private/mail/postfix.nix | |||
@@ -417,7 +417,7 @@ | |||
417 | }; | 417 | }; |
418 | }; | 418 | }; |
419 | }; | 419 | }; |
420 | security.acme.certs."mail" = { | 420 | security.acme2.certs."mail" = { |
421 | postRun = '' | 421 | postRun = '' |
422 | systemctl restart postfix.service | 422 | systemctl restart postfix.service |
423 | ''; | 423 | ''; |
diff --git a/modules/private/mail/relay.nix b/modules/private/mail/relay.nix index 9111350..e0aa387 100644 --- a/modules/private/mail/relay.nix +++ b/modules/private/mail/relay.nix | |||
@@ -1,7 +1,7 @@ | |||
1 | { lib, pkgs, config, nodes, name, ... }: | 1 | { lib, pkgs, config, nodes, name, ... }: |
2 | { | 2 | { |
3 | config = lib.mkIf config.myServices.mailBackup.enable { | 3 | config = lib.mkIf config.myServices.mailBackup.enable { |
4 | security.acme.certs."mail" = config.myServices.certificates.certConfig // { | 4 | security.acme2.certs."mail" = config.myServices.certificates.certConfig // { |
5 | postRun = '' | 5 | postRun = '' |
6 | systemctl restart postfix.service | 6 | systemctl restart postfix.service |
7 | ''; | 7 | ''; |