aboutsummaryrefslogtreecommitdiff
path: root/modules/private/mail
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-10-24 00:35:49 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-10-24 00:35:49 +0200
commitd2e703c560bc029c3d607058de2935bbf1cb0559 (patch)
tree9504d46a85fb159aa09ba449d667d1304d6f8159 /modules/private/mail
parentb11f0e174bc8450657c358a395f27a830dcad801 (diff)
downloadNix-d2e703c560bc029c3d607058de2935bbf1cb0559.tar.gz
Nix-d2e703c560bc029c3d607058de2935bbf1cb0559.tar.zst
Nix-d2e703c560bc029c3d607058de2935bbf1cb0559.zip
Rename backup module to duply_backup
Diffstat (limited to 'modules/private/mail')
-rw-r--r--modules/private/mail/default.nix2
-rw-r--r--modules/private/mail/dovecot.nix2
-rw-r--r--modules/private/mail/postfix.nix2
-rw-r--r--modules/private/mail/rspamd.nix2
4 files changed, 4 insertions, 4 deletions
diff --git a/modules/private/mail/default.nix b/modules/private/mail/default.nix
index d3b2a25..8be21a1 100644
--- a/modules/private/mail/default.nix
+++ b/modules/private/mail/default.nix
@@ -18,7 +18,7 @@
18 mxs = map (zone: "mx-1.${zone.name}") zonesWithMx; 18 mxs = map (zone: "mx-1.${zone.name}") zonesWithMx;
19 in builtins.listToAttrs (map (mx: lib.attrsets.nameValuePair mx null) mxs); 19 in builtins.listToAttrs (map (mx: lib.attrsets.nameValuePair mx null) mxs);
20 }; 20 };
21 services.backup.profiles = { 21 services.duplyBackup.profiles = {
22 mail = { 22 mail = {
23 rootDir = "/var/lib"; 23 rootDir = "/var/lib";
24 excludeFile = lib.mkAfter '' 24 excludeFile = lib.mkAfter ''
diff --git a/modules/private/mail/dovecot.nix b/modules/private/mail/dovecot.nix
index dc75e0f..6220da2 100644
--- a/modules/private/mail/dovecot.nix
+++ b/modules/private/mail/dovecot.nix
@@ -13,7 +13,7 @@ let
13in 13in
14{ 14{
15 config = lib.mkIf config.myServices.mail.enable { 15 config = lib.mkIf config.myServices.mail.enable {
16 services.backup.profiles.mail.excludeFile = '' 16 services.duplyBackup.profiles.mail.excludeFile = ''
17 + /var/lib/dhparams 17 + /var/lib/dhparams
18 + /var/lib/dovecot 18 + /var/lib/dovecot
19 ''; 19 '';
diff --git a/modules/private/mail/postfix.nix b/modules/private/mail/postfix.nix
index 9fdc7bd..1386f85 100644
--- a/modules/private/mail/postfix.nix
+++ b/modules/private/mail/postfix.nix
@@ -1,7 +1,7 @@
1{ lib, pkgs, config, myconfig, ... }: 1{ lib, pkgs, config, myconfig, ... }:
2{ 2{
3 config = lib.mkIf config.myServices.mail.enable { 3 config = lib.mkIf config.myServices.mail.enable {
4 services.backup.profiles.mail.excludeFile = '' 4 services.duplyBackup.profiles.mail.excludeFile = ''
5 + /var/lib/postfix 5 + /var/lib/postfix
6 ''; 6 '';
7 secrets.keys = [ 7 secrets.keys = [
diff --git a/modules/private/mail/rspamd.nix b/modules/private/mail/rspamd.nix
index 5e0a239..b5f64d8 100644
--- a/modules/private/mail/rspamd.nix
+++ b/modules/private/mail/rspamd.nix
@@ -11,7 +11,7 @@
11 ''; 11 '';
12 }; 12 };
13 config = lib.mkIf config.myServices.mail.enable { 13 config = lib.mkIf config.myServices.mail.enable {
14 services.backup.profiles.mail.excludeFile = '' 14 services.duplyBackup.profiles.mail.excludeFile = ''
15 + /var/lib/rspamd 15 + /var/lib/rspamd
16 ''; 16 '';
17 services.cron.systemCronJobs = let 17 services.cron.systemCronJobs = let