summaryrefslogtreecommitdiff
path: root/accounts/root@vidhar.nix
blob: e82414a80cec229f9af3b4de05578567bdd6492b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ config, userName, ... }:
{
  home-manager.users.${userName} = {
    home.stateVersion = "20.09";

    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";
          };
        };
    };
  };
}