Files
nix-config-ryan4yin/lib/colmenaSystem.nix
T
Ryan Yin 3b3992468b fix(colmena): deploy the systems nixosConfigurations evaluates
Colmena deployments now ship the same toplevel as nixosConfigurations: nodes gain the nixpkgs
registry, nixPath and dated version, and akane no longer gets the x86_64 dsh.

Assisted-by: DeepSeek Harness 0.2.1-rc.2 (claude-opus-5-5)
2026-10-21 20:59:07 +08:00

22 lines
654 B
Nix

# colmena - Remote Deployment via SSH
#
# Only the deployment settings live here. `outputs/default.nix` takes each node's modules,
# specialArgs and nixpkgs from the host's `nixosConfigurations` entry, so colmena deploys the
# system that `just eval-host`, `just build-host` and `just test` evaluate.
{
tags,
ssh-user,
# optional override; defaults to the host name. Use an IP when the host's
# DNS name is not resolvable yet (e.g. right after a hostname change).
targetHost ? null,
...
}:
{ name, ... }:
{
deployment = {
inherit tags;
targetUser = ssh-user;
targetHost = if targetHost != null then targetHost else name;
};
}