This commit is contained in:
ItsDrike 2024-04-04 22:41:11 +02:00
parent a9f63af7c0
commit a89f7f7576
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
2 changed files with 29 additions and 0 deletions

View file

@ -4,5 +4,6 @@ _: {
./gpg.nix
./eza.nix
./man.nix
./ssh.nix
];
}

View file

@ -0,0 +1,28 @@
{
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";
};
"github" = {
user = "git";
hostname = "gitlab.com";
identityFile = "~/.ssh/git/github";
};
# TODO: Figure out how to add protected/encrypted blocks here
# I don't like the idea of expising IPs/hostnames in the config
};
};
};
}