♻️ [shared] Refactor system configs

This commit is contained in:
2025-06-02 21:02:33 +02:00
parent b74e5aab62
commit 724fe6767e
4 changed files with 21 additions and 8 deletions

View File

@ -15,13 +15,16 @@ with builtins;
name = system.hostName;
value =
let
# TODO rename desktop to homelab
hostName = if system.hostName == "homelab" then "admin" else system.hostName;
hostName =
if (system ? address && system.address ? tailnet) then
system.address.tailnet
else
common.tailnetAddr system.hostName;
in
{
port = 22;
user = systemConfig.username;
hostname = "${hostName}.dns.${common.domain}";
hostname = hostName;
};
}) systems
);