This repository has been archived on 2024-07-03. You can view files and clone it, but cannot push or open issues or pull requests.
home-manager/programs/shell/ssh.nix
Evie Litherland-Smith c2dc12417c ssh: add keys to agent (new config syntax), remove heimdall
Set TERM env var to xterm-256color in foot config instead of as ssh
override, might fix emacs remote shell issues where it should be
TERM=dumb
2024-06-03 09:54:42 +01:00

36 lines
815 B
Nix

{pkgs, ...}: {
home.packages = with pkgs; [
(writeShellScriptBin "ssh-keygen-defaults"
''ssh-keygen -t ed25519 -C "$(whoami)@$(hostname)"'')
];
programs.ssh = {
enable = true;
addKeysToAgent = "yes";
forwardAgent = true;
compression = true;
serverAliveInterval = 15;
serverAliveCountMax = 3;
controlMaster = "auto";
controlPersist = "10s";
matchBlocks = {
"git*".user = "git";
"legion" = {
user = "pixelifytica";
hostname = "192.168.0.31";
};
"vanguard" = {
user = "pixelifytica";
hostname = "192.168.0.90";
};
"ionos" = {
user = "root";
hostname = "77.68.67.133";
};
"freia" = {
user = "elitherl";
hostname = "freia027.hpc.l";
};
};
};
}