nixos-config/configurations/ssh.nix
Charlotte Van Petegem cfb48de40c Reorganize for zfs
2020-05-23 09:59:32 +02:00

24 lines
610 B
Nix

{ ... }:
{
imports = [ ./ssh/secret.nix ];
custom.zfs.homeLinks = [
{ path = ".ssh/known_hosts"; type = "cache"; }
];
home-manager.users.charlotte = { pkgs, ... }: {
home.packages = with pkgs; [
ssh
];
programs.ssh = {
enable = true;
compression = true;
hashKnownHosts = true;
serverAliveInterval = 300;
extraConfig = ''
HostKeyAlgorithms ssh-ed25519-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa
'';
};
};
}