nixos-config/modules/home/all/ssh.nix
Sridhar Ratnakumar fc6f94b812 Fix ssh warning
2025-08-28 00:25:49 +05:30

23 lines
531 B
Nix

{ pkgs, lib, ... }:
{
programs.ssh = {
enable = true;
enableDefaultConfig = false;
# Explicitly set default SSH configuration
matchBlocks = {
"*" = {
addKeysToAgent = "yes";
setEnv = {
# https://ghostty.org/docs/help/terminfo#configure-ssh-to-fall-back-to-a-known-terminfo-entry
TERM = "xterm-256color";
};
};
pureintent = {
forwardAgent = true;
};
};
};
services.ssh-agent = lib.mkIf pkgs.stdenv.isLinux { enable = true; };
}