41 lines
951 B
Nix
41 lines
951 B
Nix
{ ... }:
|
|
|
|
{
|
|
imports = [ ./ssh/secret.nix ];
|
|
|
|
chvp.zfs.homeLinks = [
|
|
{ path = ".ssh/known_hosts"; type = "cache"; }
|
|
];
|
|
|
|
nixpkgs.overlays = [
|
|
(self: super: {
|
|
ssh = self.symlinkJoin {
|
|
name = "openssh";
|
|
paths = [
|
|
(
|
|
self.writeShellScriptBin "ssh" ''
|
|
export TERM=xterm-256color
|
|
${super.openssh}/bin/ssh $@
|
|
''
|
|
)
|
|
super.openssh
|
|
];
|
|
};
|
|
})
|
|
];
|
|
|
|
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
|
|
'';
|
|
};
|
|
};
|
|
}
|