From a8dd25576e367bb71142de8f7eb990ed2eada0f5 Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Sun, 14 Sep 2025 13:17:19 +0200 Subject: [PATCH] Add keealive setting for borg client --- modules/borg-client.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/borg-client.nix b/modules/borg-client.nix index d649c7b..41307e2 100644 --- a/modules/borg-client.nix +++ b/modules/borg-client.nix @@ -122,8 +122,8 @@ in sshCommand = mkOption { type = types.str; - default = "ssh -F /home/yanlin/.ssh/config -o StrictHostKeyChecking=accept-new"; - description = "SSH command for remote repositories (uses SSH config for host aliases)"; + default = "ssh -F /home/yanlin/.ssh/config -o StrictHostKeyChecking=accept-new -o ServerAliveInterval=60 -o ServerAliveCountMax=240"; + description = "SSH command for remote repositories (uses SSH config for host aliases with keepalive)"; }; preHook = mkOption {