This repository has been archived on 2024-07-10. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles-nix/nix/home/ssh/ssh.nix

30 lines
692 B
Nix
Raw Normal View History

2024-03-24 16:15:15 +01:00
{ config, pkgs, ... }:
{
# ssh
programs.ssh = {
2024-04-03 23:26:46 +02:00
enable = true;
2024-03-24 20:17:24 +01:00
matchBlocks = {
# general
"*" = {
user = "simon";
identityFile = "${config.home.homeDirectory}/.ssh/talathiel";
serverAliveInterval = 60;
};
2024-06-16 10:22:35 +02:00
# jumphost
"bastion" = {
hostname = "192.168.10.55";
2024-06-16 10:22:53 +02:00
proxyJump = "do.siempie.com";
2024-06-16 10:22:35 +02:00
};
2024-03-24 20:17:24 +01:00
# siempie lab
2024-06-16 10:22:35 +02:00
"*.do.local" = { proxyJump = "bastion"; };
"*.hackerboys.internal" = { proxyJump = "bastion"; };
"*.siempie.internal" = { proxyJump = "bastion"; };
"*.siempie.local" = { proxyJump = "bastion"; };
2024-03-24 20:17:24 +01:00
};
2024-03-24 16:15:15 +01:00
};
}