summaryrefslogtreecommitdiff
path: root/accounts/root@vidhar.nix
blob: 0b5fb6ec63f52687cf0fc36b7387ac02190b4b74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ config, userName, ... }:
{
  home-manager.users.${userName} = {
    programs.ssh.matchBlocks = {
      "yggdrasil.borgbase" =
        { hostname = "nx69hpl8.repo.borgbase.com";
          user = "nx69hpl8";
          identityFile = config.sops.secrets."append.borgbase".path;
          identitiesOnly = true;
          serverAliveInterval = 10;
          serverAliveCountMax = 30;
          extraOptions = {
            BatchMode = "yes";
          };
        };
    };
  };
}