all repos — dotfiles @ b71bc530adc48f779360fc1ca25539f1cfac2772

my *nix dotfiles

programs/ssh.nix (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
{ config
, pkgs
, ...
}:

{
  programs.ssh = {
    enable = true;
    matchBlocks = {
      "*" = {
        serverAliveInterval = 180;
        serverAliveCountMax = 3;
        identityFile = [ "~/.ssh/id_ed25519" "~/.ssh/upcloud" ];
      };
      "github.com" = {
        user = "git";
        hostname = "github.com";
      };
    };
  };
}