2024-04-04 20:41:11 +00:00
|
|
|
{
|
|
|
|
programs = {
|
|
|
|
ssh = {
|
2024-06-30 18:23:18 +00:00
|
|
|
|
|
|
|
# TODO: Enable this after figuring out how to add protected/encrypted blocks here.
|
|
|
|
# I don't like the idea of expising IPs/hostnames in the config.
|
|
|
|
# For now, I just persist the .ssh directory, managing stuff manually.
|
|
|
|
enable = false;
|
2024-04-04 20:41:11 +00:00
|
|
|
hashKnownHosts = true;
|
|
|
|
compression = true;
|
|
|
|
matchBlocks = {
|
|
|
|
# Git hosts
|
|
|
|
"aur" = {
|
|
|
|
hostname = "aur.archlinux.org";
|
|
|
|
identityFile = "~/.ssh/git/aur";
|
|
|
|
};
|
|
|
|
"gitlab" = {
|
|
|
|
user = "git";
|
|
|
|
hostname = "gitlab.com";
|
2024-06-27 20:12:27 +00:00
|
|
|
identityFile = "~/.ssh/git/gitlab-itsdrike";
|
2024-04-04 20:41:11 +00:00
|
|
|
};
|
|
|
|
"github" = {
|
|
|
|
user = "git";
|
|
|
|
hostname = "gitlab.com";
|
2024-06-27 20:12:27 +00:00
|
|
|
identityFile = "~/.ssh/git/github-itsdrike";
|
2024-04-04 20:41:11 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|