nixos/home/ssh.nix
Evie Litherland-Smith 77f88fc7aa Remove keychain
Use gnome-keyring for ssh-agent instead
2023-09-30 09:31:30 +01:00

33 lines
711 B
Nix

{ pkgs, ... }: {
home.packages = with pkgs; [ sshfs ];
programs = {
ssh = {
enable = true;
forwardAgent = true;
serverAliveInterval = 15;
serverAliveCountMax = 3;
controlMaster = "auto";
controlPersist = "10s";
extraConfig = ''
AddKeysToAgent=yes
SetEnv TERM=xterm-256color
'';
matchBlocks = {
"vanguard" = {
user = "xenia";
hostname = "192.168.1.166";
};
"legion" = {
user = "xenia";
hostname = "192.168.1.230";
};
"ionos" = {
user = "root";
hostname = "77.68.67.133";
};
"git*".user = "git";
};
};
};
}