38 lines
754 B
Nix
38 lines
754 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
|
|
programs.ssh = {
|
|
extraConfig = ''
|
|
Host git-ssh.hadoly.fr
|
|
Hostname git-ssh.hadoly.fr
|
|
IdentityFile /run/secrets/ssh/mysaa@git.hadoly.fr
|
|
Port 6900
|
|
|
|
Host github.com
|
|
HostName github.com
|
|
IdentityFile /run/secrets/ssh/MysaaJava@github.com
|
|
|
|
Host midori
|
|
HostName midori.bernard.com.de
|
|
User mysaa
|
|
IdentityFile /run/secrets/ssh/mysaa@midori.bernard.com.de
|
|
|
|
Match host nasvrillon exec "nc -w 1 -z 192.168.1.39 5001"
|
|
HostName 192.168.1.39
|
|
Port 22
|
|
Host nasvrillon
|
|
HostName nasvrillon.myqnapcloud.com
|
|
User samy
|
|
Port 6962
|
|
ConnectTimeout 10
|
|
AddressFamily inet
|
|
'';
|
|
};
|
|
|
|
}
|