nix-flakes/modules/home/ssh.nix
2026-07-26 14:17:57 +09:00

24 lines
600 B
Nix

{ ... }: {
programs.ssh = {
enable = true;
enableDefaultConfig = false;
settings = {
"*" = {
ForwardAgent = false;
IdentityAgent = "~/.1password/agent.sock";
SetEnv = {
TERM = "xterm-256color";
};
ServerAliveInterval = 0;
ServerAliveCountMax = 3;
Compression = false;
AddKeysToAgent = "no";
HashKnownHosts = false;
UserKnownHostsFile = "~/.ssh/known_hosts";
ControlMaster = "no";
ControlPath = "~/.ssh/master-%r@%n:%p";
ControlPersist = "no";
};
};
};
}