marleyos/home/programs/ssh.nix

23 lines
455 B
Nix
Raw Normal View History

2024-11-13 21:40:22 -08:00
{ ... }:
{
programs.ssh = {
enable = true;
# Equivalent of ~/.ssh/config
2024-11-14 18:40:25 -08:00
# %d - local user's home directory
# %r - remote username
2024-11-13 21:40:22 -08:00
matchBlocks = {
"tty.marleycentre" = {
hostname = "admin.punkfairie.net";
2024-11-14 18:40:25 -08:00
identityFile = "%d/.ssh/%r@marleycentre";
2024-11-13 21:40:22 -08:00
};
"tty.marleynet" = {
hostname = "10.69.69.2";
port = 222;
2024-11-14 18:40:25 -08:00
identityFile = "%d/.ssh/%r@marleynet";
2024-11-13 21:40:22 -08:00
};
};
};
}