Distuingish between configurations and program modifications
This commit is contained in:
parent
964b294300
commit
1afb00a3de
27 changed files with 48 additions and 44 deletions
|
@ -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
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue