all repos — dotfiles @ 95da48066c0076861612780a17e0abac8cff6cef

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
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
{ config
, pkgs
, ...
}:

{
  programs.ssh = {
    enable = true;
    matchBlocks = {
      "*" = {
        serverAliveInterval = 180;
        serverAliveCountMax = 3;
      };
      "github.com" = {
        user = "git";
        hostname = "github.com";
        identityFile = [ "~/.ssh/id_ed25519" "~/.ssh/upcloud" ];
      };
      "fern" = {
        user = "ubuntu";
        hostname = "fern";
        identityFile = "~/.ssh/id_rsa";
      };
      "egg" = {
        user = "icy";
        hostname = "egg";
        identityFile = [ "~/.ssh/id_ed25519" "~/.ssh/upcloud" ];
      };
      "upcloud" = {
        hostname = "git.services.upcloud.com";
        identityFile = "~/.ssh/upcloud";
      };
      "denna" = {
        hostname = "denna";
        identityFile = [ "~/.ssh/id_ed25519" "~/.ssh/upcloud" ];
      };
      "jade" = {
        user = "ubuntu";
        hostname = "jade";
        identityFile = "~/.ssh/id_rsa";
      };
      "lapis2" = {
        user = "icy";
        hostname = "150.230.131.193";
        identityFile = "~/.ssh/id_rsa";
      };
    };
  };
}