1
0

create homeManagerModules.private for ssh hosts

This commit is contained in:
2025-11-04 22:28:28 -08:00
parent b0a0d1efcd
commit c1f47b02b7
2 changed files with 38 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
{ ... }:
{
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;
};
};
};
}