[ssh] migrated to nix config

This commit is contained in:
Simon Cornet 2024-03-24 20:17:24 +01:00
parent 6d49aa0f5b
commit 4c7fd4f88a
2 changed files with 15 additions and 23 deletions

View File

@ -1,22 +0,0 @@
# generic
host *
user simon
identityfile ~/.ssh/talathiel
serveraliveinterval 60
stricthostkeychecking no
# siempie lab
host *.siempie.local
proxyjump siempie.com
host *.siempie.internal
proxyjump siempie.com
host *.hackerboys.internal
proxyjump siempie.com
# siempie do
host *.do.local
proxyjump do.siempie.com

View File

@ -4,6 +4,20 @@
# ssh
programs.ssh = {
enable = true;
includes = [ "${config.home.homeDirectory}/.dotfiles/apps/ssh/config" ];
matchBlocks = {
# general
"*" = {
user = "simon";
identityFile = "${config.home.homeDirectory}/.ssh/talathiel";
serverAliveInterval = 60;
};
# siempie lab
"*.do.local" = { proxyJump = "siempie.com"; };
"*.hackerboys.internal" = { proxyJump = "siempie.com"; };
"*.siempie.internal" = { proxyJump = "siempie.com"; };
"*.siempie.local" = { proxyJump = "siempie.com"; };
};
};
}