refactor(deploy): set up tailnet 'colmena' deploy

This commit is contained in:
2026-06-15 08:35:49 +02:00
parent e845834833
commit c19d6b3152
8 changed files with 11 additions and 16 deletions
+4 -3
View File
@@ -12,7 +12,7 @@ let
hostname:
let
meta = utils.hostMeta ../hosts/${hostname};
isLocal = builtins.elem "local" meta.tags;
isArm = meta.system == "aarch64-linux";
in
{
imports = [ ../hosts/${hostname} ];
@@ -20,8 +20,9 @@ let
deployment = {
inherit (meta) tags;
targetUser = meta.host.username;
targetHost = if isLocal then "" else hostname;
buildOnTarget = builtins.any (t: t != "local" && t != "arm") meta.tags;
targetHost = hostname;
allowLocalDeployment = meta.host.admin or false;
buildOnTarget = !isArm;
};
};