ark/users/modules/ssh/default.nix

21 lines
527 B
Nix
Raw Normal View History

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