2023-08-01 15:35:09 +02:00
|
|
|
{ home-manager, ... }: {
|
|
|
|
# # https://nix-community.github.io/home-manager/options.html
|
|
|
|
|
|
|
|
home-manager.users.caspervk = {
|
|
|
|
programs.ssh = {
|
|
|
|
enable = true;
|
2023-08-13 19:28:52 +02:00
|
|
|
controlMaster = "yes";
|
2023-08-01 15:35:09 +02:00
|
|
|
matchBlocks = {
|
|
|
|
"delta" = {
|
|
|
|
hostname = "delta.caspervk.net";
|
|
|
|
port = 222;
|
|
|
|
};
|
|
|
|
"lambda" = {
|
|
|
|
hostname = "lambda.caspervk.net";
|
|
|
|
port = 222;
|
|
|
|
};
|
|
|
|
"sigma" = {
|
|
|
|
hostname = "sigma.caspervk.net";
|
|
|
|
port = 222;
|
|
|
|
};
|
2023-08-05 18:44:43 +02:00
|
|
|
"tor" = {
|
|
|
|
hostname = "tor.caspervk.net";
|
|
|
|
port = 222;
|
|
|
|
};
|
2023-08-01 15:35:09 +02:00
|
|
|
"git.caspervk.net" = {
|
|
|
|
port = 2222;
|
|
|
|
};
|
|
|
|
};
|
2023-08-13 19:28:52 +02:00
|
|
|
extraConfig = ''
|
|
|
|
AddKeysToAgent yes
|
|
|
|
'';
|
2023-08-01 15:35:09 +02:00
|
|
|
};
|
|
|
|
};
|
2023-08-13 19:28:52 +02:00
|
|
|
|
|
|
|
programs.ssh = {
|
|
|
|
startAgent = true;
|
|
|
|
};
|
2023-08-01 15:35:09 +02:00
|
|
|
}
|