🚚 [shared] Added shared config that shared desktop config inherits from

This commit is contained in:
2025-05-20 21:52:00 +02:00
parent adb02fbcc2
commit 9a8cc63674
92 changed files with 41 additions and 25 deletions

View File

@ -0,0 +1,27 @@
# ~/.ssh/config
{
systemConfig,
systems,
common,
...
}:
{
programs.ssh = {
enable = true;
matchBlocks =
let
block = hostname: {
port = 22;
user = systemConfig.username;
hostname = "${hostname}.dns.${common.domain}";
};
in
{
desktop = block "desktop";
homelab = block "admin"; # TODO rename to homelab
pi4 = block "pi4";
thinkpad = block "thinkpad";
};
};
}