imnyang/nix-flakes
Watch
1
0
Fork
You've already forked nix-flakes
0
nix-flakes/modules/home/ssh.nix
2026-10-13 07:30:18 +09:00

32 lines
831 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";
};
"mizuki.guru" = {
User = "discord";
PreferredAuthentications = [ "none" ];
PubkeyAuthentication = false;
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
};
};
};
}