X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Fprivate%2Fsystem%2Fbackup-2.nix;fp=modules%2Fprivate%2Fsystem%2Fbackup-2.nix;h=615167150a10c27b4788fd90bc463f078d75e006;hb=285380fe566700ab3bf4f69b0a1a10fb4d9bba3a;hp=80fa36df1253fa883eca1e1371a34720a41c8587;hpb=d2e703c560bc029c3d607058de2935bbf1cb0559;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/modules/private/system/backup-2.nix b/modules/private/system/backup-2.nix index 80fa36d..6151671 100644 --- a/modules/private/system/backup-2.nix +++ b/modules/private/system/backup-2.nix @@ -30,6 +30,22 @@ interfaces."ens3".ipv6.addresses = pkgs.lib.flatten (pkgs.lib.attrsets.mapAttrsToList (n: ips: map (ip: { address = ip; prefixLength = (if n == "main" && ip == pkgs.lib.head ips.ip6 then 64 else 128); }) (ips.ip6 or [])) myconfig.env.servers.backup-2.ips); + + defaultMailServer = { + directDelivery = true; + hostName = "eldiron.immae.eu:25"; + useTLS = true; + useSTARTTLS = true; + root = "postmaster@immae.eu"; + }; + }; + + services.rsyncBackup = { + mountpoint = "/backup2"; + mailto = myconfig.env.rsync_backup.mailto; + profiles = myconfig.env.rsync_backup.profiles; + ssh_key_public = myconfig.env.rsync_backup.ssh_key.public; + ssh_key_private = myconfig.env.rsync_backup.ssh_key.private; }; # This value determines the NixOS release with which your system is