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

This commit is contained in:
hektor committed 2026-06-13 01:23:31 +02:00
1 parent c7567330b8
commit 1995c04b1d
21 files changed
+78 -84

No files matched your search

+4 -3
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;
}
)
// {