32 lines
831 B
Nix
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;
|
|
};
|
|
};
|
|
};
|
|
}
|