refactor: merge 'host.nix' into 'meta.nix'

This commit is contained in:
2026-06-12 20:30:08 +02:00
parent c7567330b8
commit 1995c04b1d
21 changed files with 78 additions and 84 deletions

View File

@@ -29,12 +29,13 @@ in
hostname:
let
meta = myUtils.hostMeta (hostDir + "/${hostname}");
isLocal = builtins.elem "local" meta.tags;
in
{
User = meta.deployment.targetUser;
User = meta.host.username;
}
// lib.optionalAttrs (meta.deployment.targetHost != "") {
HostName = meta.deployment.targetHost;
// lib.optionalAttrs (!isLocal) {
HostName = hostname;
}
)
// {