System/home-manager/modules/programs/ssh.nix
2024-11-29 05:53:45 +00:00

27 lines
493 B
Nix

{
config,
lib,
pkgs,
...
}:
{
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
matchBlocks =
{
};
};
}