always use IPv6 for borg connections

There is no A record for backup0
This commit is contained in:
Tim Schubert 2023-02-04 23:53:24 +01:00
parent 28290de97a
commit dfcbbcf70b
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA

View file

@ -107,7 +107,7 @@ in
repo = "borg@backup0.dadada.li:/mnt/storage/backup/${config.networking.hostName}"; repo = "borg@backup0.dadada.li:/mnt/storage/backup/${config.networking.hostName}";
doInit = false; doInit = false;
environment = { 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 = { encryption = {
mode = "repokey"; mode = "repokey";