From dfcbbcf70bde22c64f64e0707deadff399d2ad5c Mon Sep 17 00:00:00 2001 From: dadada Date: Sat, 4 Feb 2023 23:53:24 +0100 Subject: [PATCH] always use IPv6 for borg connections There is no A record for backup0 --- nixos/modules/backup.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/backup.nix b/nixos/modules/backup.nix index e0d6417..facb53f 100644 --- a/nixos/modules/backup.nix +++ b/nixos/modules/backup.nix @@ -107,7 +107,7 @@ in repo = "borg@backup0.dadada.li:/mnt/storage/backup/${config.networking.hostName}"; doInit = false; environment = { - BORG_RSH = "ssh -i ${cfg.bs.sshIdentityFile} -o 'StrictHostKeyChecking accept-new' -o 'TCPKeepAlive=yes'"; + BORG_RSH = "ssh -6 -i ${cfg.bs.sshIdentityFile} -o 'StrictHostKeyChecking accept-new' -o 'TCPKeepAlive=yes'"; }; encryption = { mode = "repokey";