1
0
Files
nix-shared/home/private/ssh-hosts.nix

33 lines
649 B
Nix

{ ... }:
{
programs.ssh = {
enable = true;
matchBlocks =
let
tb1 = "~/.ssh/id_rsa.tb1.pub";
tb2 = "~/.ssh/id_rsa.tb2.pub";
in
{
# Homelab Machines
"fs1" = {
hostname = "fs1.t1.xyz";
identityFile = tb1;
};
"fs1.local" = {
hostname = "192.168.50.100"
identityFile = tb1;
};
"tr1" = {
hostname = "tr1.t1.xyz";
identityFile = tb1;
};
"tr1.local" = {
hostname = "192.168.50.100"
identityFile = tb1;
};
};
};
}