nixos-combined-flake/modules/home-manager/shell/ssh/default.nix

35 lines
829 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;
};
}