System/home-manager/modules/programs/ssh.nix

24 lines
484 B
Nix
Raw Permalink Normal View History

2024-11-29 05:46:01 +00:00
{
config,
lib,
pkgs,
...
2025-01-13 19:53:42 +00:00
}: {
2024-11-29 05:46:01 +00:00
programs.ssh = {
# SSH configuration
enable = true;
# extra config to set the ciphers
extraConfig = ''
Ciphers aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr
'';
# Enable compression
compression = true;
# enable session reuse
controlMaster = "auto";
controlPersist = "10m";
# Configure known hosts
2025-01-09 15:58:16 +00:00
matchBlocks = {
};
2024-11-29 05:46:01 +00:00
};
}