nixdots/home/programs/terminal/tools/ssh.nix

29 lines
718 B
Nix
Raw Normal View History

2024-04-04 20:41:11 +00:00
{
programs = {
ssh = {
enable = true;
hashKnownHosts = true;
compression = true;
matchBlocks = {
# Git hosts
"aur" = {
hostname = "aur.archlinux.org";
identityFile = "~/.ssh/git/aur";
};
"gitlab" = {
user = "git";
hostname = "gitlab.com";
identityFile = "~/.ssh/git/gitlab-itsdrike";
2024-04-04 20:41:11 +00:00
};
"github" = {
user = "git";
hostname = "gitlab.com";
identityFile = "~/.ssh/git/github-itsdrike";
2024-04-04 20:41:11 +00:00
};
# TODO: Figure out how to add protected/encrypted blocks here
# I don't like the idea of expising IPs/hostnames in the config
};
};
};
}