summaryrefslogtreecommitdiff
path: root/accounts
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-02-17 12:29:02 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-02-17 12:29:02 +0100
commit3b37f8ecdac287725cb36b78f81d18734726df28 (patch)
tree69c5989354a373576092c94d7afd11cb0cf9ec8a /accounts
parentddf1e44087b0095c006f07ee40d8512484d28065 (diff)
downloadnixos-3b37f8ecdac287725cb36b78f81d18734726df28.tar
nixos-3b37f8ecdac287725cb36b78f81d18734726df28.tar.gz
nixos-3b37f8ecdac287725cb36b78f81d18734726df28.tar.bz2
nixos-3b37f8ecdac287725cb36b78f81d18734726df28.tar.xz
nixos-3b37f8ecdac287725cb36b78f81d18734726df28.zip
vidhar: borg copy
Diffstat (limited to 'accounts')
-rw-r--r--accounts/root@vidhar.nix10
1 files changed, 8 insertions, 2 deletions
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 @@
1{ userName, ... }: 1{ config, userName, ... }:
2{ 2{
3 home-manager.users.${userName} = { 3 home-manager.users.${userName} = {
4 programs.ssh.matchBlocks = { 4 programs.ssh.matchBlocks = {
5 "yggdrasil.borgbase" = 5 "yggdrasil.borgbase" =
6 { hostname = "nx69hpl8.repo.borgbase.com"; 6 { hostname = "nx69hpl8.repo.borgbase.com";
7 user = "nx69hpl8"; 7 user = "nx69hpl8";
8 identityFile = "~/.ssh/append.borgbase"; 8 identityFile = config.sops.secrets."append.borgbase".path;
9 identitiesOnly = true;
10 serverAliveInterval = 10;
11 serverAliveCountMax = 30;
12 extraOptions = {
13 BatchMode = "yes";
14 };
9 }; 15 };
10 }; 16 };
11 }; 17 };