mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-13 12:13:46 +01:00
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)
22 lines
654 B
Nix
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;
|
|
};
|
|
}
|