Distuingish between configurations and program modifications

This commit is contained in:
Charlotte Van Petegem 2020-05-03 17:40:09 +02:00
parent 964b294300
commit 1afb00a3de
27 changed files with 48 additions and 44 deletions

View file

@ -1,15 +1,16 @@
{ ... }:
{ pkgs }:
{
home-manager.users.charlotte = { ... }: {
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
'';
};
};
pkgs.symlinkJoin {
name = "openssh";
paths = [
(
pkgs.writeScriptBin "ssh" ''
#!${pkgs.zsh}/bin/zsh
export TERM=xterm-256color
${pkgs.openssh}/bin/ssh $@
''
)
pkgs.openssh
];
}