35 lines
830 B
Nix
35 lines
830 B
Nix
{ pkgs
|
|
, config
|
|
, lib
|
|
, ...
|
|
}:
|
|
lib.mkIf config.programs.ssh.enable {
|
|
home.packages = with pkgs; [ tea ];
|
|
programs = {
|
|
ssh = {
|
|
addKeysToAgent = "yes";
|
|
forwardAgent = true;
|
|
matchBlocks = {
|
|
"svartalbenheim.odie.home.arpa" = {
|
|
hostname = "svartalbenheim.odie.home.arpa";
|
|
identityFile = "~/.ssh/id_ed25519_local";
|
|
compression = false;
|
|
};
|
|
"git.gaja-group.com" = {
|
|
hostname = "git.gaja-group.com";
|
|
user = "git";
|
|
extraOptions = {
|
|
ProxyCommand = "openssl s_client -quiet -connect rz-de3.gaja-group.com:2222 -servername 10.100.100.170";
|
|
};
|
|
#identityFile = "~/.ssh/id_ed25519_local";
|
|
#compression =false;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
services = {
|
|
ssh-agent.enable = true;
|
|
};
|
|
}
|