nixos-config/homes/palo/ssh.nix
2024-06-07 22:56:52 +02:00

47 lines
969 B
Nix

{ pkgs, lib, config, ... }:
{
home.packages = [ pkgs.sshuttle ];
programs.ssh.enable = true;
programs.ssh.matchBlocks = {
"*" = {
identityFile = "~/.ssh/mrvandalo_rsa.pub";
identitiesOnly = true;
};
"lassul.us" = {
user = "download";
port = 45621;
};
"*.r" = {
user = "palo";
};
"*.secret" = {
user = "root";
};
"*.private" = {
user = "root";
};
"*.bear" = {
user = "root";
};
"*.lan" = {
user = "root";
};
"github.com" = {
hostname = "ssh.github.com";
user = "root";
};
"es5.siteground.eu" = {
user = "ingolfwa";
port = 18765;
};
"*.onion" = {
user = "root";
};
#"*.compute.amazonaws.com".extraOptions = {
# ProxyCommand = ''
# sh -c "${pkgs.awscli2}/bin/aws ssm start-session --target %h --document-name AWS-StartSSHSession --parameters 'portNumber=%p'"
# '';
#};
};
}