diff --git a/morph/lib/borgbackup.nix b/morph/lib/borgbackup.nix index e71ca55ef90bb3aa50efb3d48b4cd6268a18daf7..4b1d2620515b521da6411fa6ce3ec98b007c9b23 100644 --- a/morph/lib/borgbackup.nix +++ b/morph/lib/borgbackup.nix @@ -53,7 +53,7 @@ in { passCommand = "cat /run/keys/borgbackup/passphrase"; }; environment = { - BORG_RSH = "ssh -i /run/keys/borgbackup/ssh-key"; + BORG_RSH = "ssh -i /run/keys/borgbackup/ssh-key -o StrictHostKeyChecking=accept-new"; }; # Ciphertext doesn't compress well @@ -72,7 +72,7 @@ in { path = [ pkgs.borgbackup ]; environment = { BORG_PASSCOMMAND = "cat /run/keys/borgbackup/passphrase"; - BORG_RSH = "ssh -i /run/keys/borgbackup/ssh-key"; + BORG_RSH = "ssh -i /run/keys/borgbackup/ssh-key -o StrictHostKeyChecking=accept-new"; BORG_REPO = lib.fileContents "${publicKeyPath}/borgbackup/${config.networking.hostName}.repopath"; }; script = ''${pkgs.borgbackup}/bin/borg check'';