ark/users/modules/ssh/default.nix

21 lines
527 B
Nix

{config, nixosConfig, ...}: {
programs.ssh = {
enable = true;
compression = true;
hashKnownHosts = true;
userKnownHostsFile = "~/.local/share/ssh/known-hosts";
addKeysToAgent = "yes";
package = nixosConfig.programs.ssh.package;
# Only needed for darcs hub
# extraConfig = ''
# Host hub.darcs.net
# ControlMaster no
# ForwardAgent no
# ForwardX11 no
# Ciphers +aes256-cbc
# MACs +hmac-sha1
# '';
};
services.ssh-agent.enable = true;
}