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 {