nixos/modules/desktop/ssh.nix
2023-08-13 19:28:52 +02:00

39 lines
795 B
Nix

{ home-manager, ... }: {
# # https://nix-community.github.io/home-manager/options.html
home-manager.users.caspervk = {
programs.ssh = {
enable = true;
controlMaster = "yes";
matchBlocks = {
"delta" = {
hostname = "delta.caspervk.net";
port = 222;
};
"lambda" = {
hostname = "lambda.caspervk.net";
port = 222;
};
"sigma" = {
hostname = "sigma.caspervk.net";
port = 222;
};
"tor" = {
hostname = "tor.caspervk.net";
port = 222;
};
"git.caspervk.net" = {
port = 2222;
};
};
extraConfig = ''
AddKeysToAgent yes
'';
};
};
programs.ssh = {
startAgent = true;
};
}