marleyos/home/programs/ssh.nix

22 lines
455 B
Nix

{ ... }:
{
programs.ssh = {
enable = true;
# Equivalent of ~/.ssh/config
# %d - local user's home directory
# %r - remote username
matchBlocks = {
"tty.marleycentre" = {
hostname = "admin.punkfairie.net";
identityFile = "%d/.ssh/%r@marleycentre";
};
"tty.marleynet" = {
hostname = "10.69.69.2";
port = 222;
identityFile = "%d/.ssh/%r@marleynet";
};
};
};
}