nichts/modules/home-manager/ssh.nix
2026-06-05 02:18:22 +02:00

21 lines
323 B
Nix

{ ... }:
{
services.ssh-agent.enable = true;
home.sessionVariables = {
SSH_AUTH_SOCK = "$XDG_RUNTIME_DIR/ssh-agent";
};
programs.ssh = {
enable = true;
enableDefaultConfig = false;
matchBlocks = {
"*" = {
identitiesOnly = true;
};
include ./ssh-hosts.nix
};
};
}