This commit is contained in:
암냥 2026-07-07 09:45:04 +09:00
commit 04c9007f08
No known key found for this signature in database
14 changed files with 389 additions and 59 deletions

25
modules/home/ssh.nix Normal file
View file

@ -0,0 +1,25 @@
{ ... }: {
programs.ssh = {
enable = true;
matchBlocks = {
"*" = {
forwardAgent = false;
identityAgent = "~/.1password/agent.sock";
setEnv = {
TERM = "xterm-256color";
};
extraOptions = {
ServerAliveInterval = "0";
ServerAliveCountMax = "3";
Compression = "no";
AddKeysToAgent = "no";
HashKnownHosts = "no";
UserKnownHostsFile = "~/.ssh/known_hosts";
ControlMaster = "no";
ControlPath = "~/.ssh/master-%r@%n:%p";
ControlPersist = "no";
};
};
};
};
}