mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-09 22:49:42 +00:00
Add ssh
This commit is contained in:
parent
a9f63af7c0
commit
a89f7f7576
|
@ -4,5 +4,6 @@ _: {
|
|||
./gpg.nix
|
||||
./eza.nix
|
||||
./man.nix
|
||||
./ssh.nix
|
||||
];
|
||||
}
|
||||
|
|
28
home/programs/terminal/tools/ssh.nix
Normal file
28
home/programs/terminal/tools/ssh.nix
Normal 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
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue