Current derivation

This commit is contained in:
Filippo Berto 2021-05-21 22:30:33 +02:00
parent 0aae761f89
commit f7226d5fa6
20 changed files with 342 additions and 79 deletions

46
modules/ssh.nix Normal file
View file

@ -0,0 +1,46 @@
{
programs.ssh = {
enable = true;
compression = true;
matchBlocks = {
"gitlab.com" = {
hostname = "gitlab.com";
identityFile = "~/.ssh/gitlab";
identitiesOnly = true;
};
"github.com" = {
hostname = "github.com";
identityFile = "~/.ssh/github";
identitiesOnly = true;
};
"bitbucket.com" = {
hostname = "bitbucket.com";
identityFile = "~/.ssh/bitbucket";
identitiesOnly = true;
};
"aur.archlinux.org" = {
hostname = "aur.archlinux.org";
identityFile = "~/.ssh/aur";
identitiesOnly = true;
};
"heroku.com" = {
hostname = "heroku.com";
identityFile = "~/.ssh/heroku";
identitiesOnly = true;
};
"*ngrok.io" = {
hostname = "*ngrok.io";
identityFile = "~/.ssh/local";
identitiesOnly = true;
};
"172.27.108.*" = {
hostname = "172.27.108.*";
identityFile = "~/.ssh/local";
identitiesOnly = true;
};
"*" = {
identityFile = "~/.ssh/id_ed25519";
};
};
};
}