nixos-config/users/rouven/modules/ssh/default.nix

49 lines
1 KiB
Nix
Raw Normal View History

2023-01-06 10:37:50 +01:00
{ config, ... }:
{
programs.ssh = {
enable = true;
matchBlocks = {
2023-03-09 19:15:05 +01:00
"se-gitlab.inf.tu-dresden.de" = {
identityFile = "~/.ssh/git";
};
2023-01-06 10:37:50 +01:00
"github.com" = {
identityFile = "~/.ssh/git";
};
"rfive.de" = {
2023-01-25 18:28:10 +01:00
user = "debian";
2023-01-06 10:37:50 +01:00
};
2023-02-03 11:43:09 +01:00
"kaki" = {
hostname = "kaki.ifsr.de";
user = "root";
};
"fsr" = {
hostname = "ifsr.de";
user = "rouven.seifert";
};
"quitte" = {
hostname = "quitte.ifsr.de";
user = "root";
};
2023-01-23 19:15:45 +01:00
"nuc" = {
hostname = "192.168.10.2";
user = "root";
};
2023-01-06 10:37:50 +01:00
"git@rfive.de" = {
match = "Host rfive.de User git";
identityFile = "~/.ssh/git";
};
"git@raspi" = {
match = "Host raspi User git";
identityFile = "~/.ssh/git";
};
2023-02-02 12:31:38 +01:00
"git@ifsr.de" = {
2023-02-17 21:35:12 +01:00
match = "Host ifsr.de User git";
2023-02-02 12:31:38 +01:00
identityFile = "~/.ssh/git";
};
2023-01-06 10:37:50 +01:00
};
2023-01-14 22:55:06 +01:00
extraConfig = ''
IdentityFile ~/.ssh/id_ed25519
'';
2023-01-06 10:37:50 +01:00
};
}