From 3b37f8ecdac287725cb36b78f81d18734726df28 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 17 Feb 2022 12:29:02 +0100 Subject: vidhar: borg copy --- accounts/root@vidhar.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'accounts') diff --git a/accounts/root@vidhar.nix b/accounts/root@vidhar.nix index ad30cffb..0b5fb6ec 100644 --- a/accounts/root@vidhar.nix +++ b/accounts/root@vidhar.nix @@ -1,11 +1,17 @@ -{ userName, ... }: +{ config, userName, ... }: { home-manager.users.${userName} = { programs.ssh.matchBlocks = { "yggdrasil.borgbase" = { hostname = "nx69hpl8.repo.borgbase.com"; user = "nx69hpl8"; - identityFile = "~/.ssh/append.borgbase"; + identityFile = config.sops.secrets."append.borgbase".path; + identitiesOnly = true; + serverAliveInterval = 10; + serverAliveCountMax = 30; + extraOptions = { + BatchMode = "yes"; + }; }; }; }; -- cgit v1.2.3