summaryrefslogtreecommitdiff
path: root/accounts/root@vidhar.nix
blob: 0fc56633996524c1c07e6122f532eef9dec7ba2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ flake, config, userName, ... }:

{
  imports = with flake.nixosModules.userProfiles.${userName}; [
    zsh tmux
  ];

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