nix-dotfiles/modules/ssh.nix

46 lines
1.1 KiB
Nix

{
programs.ssh = {
enable = true;
compression = true;
matchBlocks = {
"gitlab.com" = {
hostname = "gitlab.com";
identityFile = "~/.ssh/gitlab";
identitiesOnly = true;
};
"github.com" = {
hostname = "github.com";
identityFile = "~/.ssh/github";
identitiesOnly = true;
};
"bitbucket.com" = {
hostname = "bitbucket.com";
identityFile = "~/.ssh/bitbucket";
identitiesOnly = true;
};
"aur.archlinux.org" = {
hostname = "aur.archlinux.org";
identityFile = "~/.ssh/aur";
identitiesOnly = true;
};
"heroku.com" = {
hostname = "heroku.com";
identityFile = "~/.ssh/heroku";
identitiesOnly = true;
};
"ngrok.io" = {
hostname = "ngrok.io";
identityFile = "~/.ssh/local";
identitiesOnly = true;
};
"172.27.108.?" = {
hostname = "172.27.108.?";
identityFile = "~/.ssh/local";
identitiesOnly = true;
};
"*" = {
identityFile = "~/.ssh/id_ed25519";
};
};
};
}