Reorganize for zfs

This commit is contained in:
Charlotte Van Petegem 2020-05-23 09:59:32 +02:00
parent 2933964680
commit cfb48de40c
57 changed files with 817 additions and 492 deletions

24
configurations/ssh.nix Normal file
View file

@ -0,0 +1,24 @@
{ ... }:
{
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
'';
};
};
}