From 3596873b1fd5379d1e391c186a23f30c008df07e Mon Sep 17 00:00:00 2001 From: hektor Date: Sun, 31 May 2026 17:20:18 +0200 Subject: [PATCH] fix(deploy): add 'host.name' to colmena config --- deploy/colmena.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/deploy/colmena.nix b/deploy/colmena.nix index 3f4add0d..a8d2eb56 100644 --- a/deploy/colmena.nix +++ b/deploy/colmena.nix @@ -6,17 +6,18 @@ let inherit (inputs.nixpkgs) lib; utils = import ../utils { inherit lib; }; - hostDirNames = utils.dirNames ../hosts; + hostnames = utils.dirNames ../hosts; mkNode = hostname: meta: { imports = [ ../hosts/${hostname} ]; + host.name = hostname; deployment = { inherit (meta.deployment) targetHost targetUser tags; buildOnTarget = builtins.any (t: t != "local" && t != "arm") meta.deployment.tags; }; }; - nodes = lib.genAttrs hostDirNames (hostname: mkNode hostname (utils.hostMeta ../hosts/${hostname})); + nodes = lib.genAttrs hostnames (hostname: mkNode hostname (utils.hostMeta ../hosts/${hostname})); in inputs.colmena.lib.makeHive ( {