Add SSH config

This commit is contained in:
Andreas Zweili 2022-06-29 21:35:27 +02:00
parent 5250487343
commit 8959083dd3
2 changed files with 21 additions and 0 deletions

View File

@ -25,6 +25,7 @@
./software/telegram
./software/vim
./software/work-desktop
"${inputs.self}/home-manager/software/ssh"
];
home.packages = with pkgs; [
arc-theme

View File

@ -0,0 +1,20 @@
{ ... }: {
programs.ssh = {
enable = true;
extraConfig = ''
Host nixos.2li.local
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
User nixos
LogLevel QUIET
Host *.2li.local
User andreas
IdentityFile ~/.nixos/secrets/ssh_keys/ansible/ansible.key
Host 10.7.89.*
User andreas
IdentityFile ~/.nixos/secrets/ssh_keys/ansible/ansible.key
'';
};
}