mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-26 17:04:35 +00:00
31 lines
815 B
Nix
31 lines
815 B
Nix
{
|
|
programs = {
|
|
ssh = {
|
|
|
|
# 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;
|
|
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";
|
|
};
|
|
"github" = {
|
|
user = "git";
|
|
hostname = "gitlab.com";
|
|
identityFile = "~/.ssh/git/github-itsdrike";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|