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)
This commit is contained in:
Ryan Yin authored and ryan4yin | 二花 committed 2026-10-21 20:59:07 +08:00
1 parent 9a3cf189cd
commit 3b3992468b
8 files changed
+65 -67

No files matched your search

+4 -25
View File
@@ -1,23 +1,16 @@
# 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.
{
lib,
inputs,
nixos-modules,
home-modules ? [ ],
myvars,
system,
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,
genSpecialArgs,
specialArgs ? (genSpecialArgs system),
...
}:
let
inherit (inputs) home-manager;
in
{ name, ... }:
{
deployment = {
@@ -25,18 +18,4 @@ in
targetUser = ssh-user;
targetHost = if targetHost != null then targetHost else name;
};
imports =
nixos-modules
++ (lib.optionals ((lib.lists.length home-modules) > 0) [
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.backupFileExtension = "home-manager.backup";
home-manager.extraSpecialArgs = specialArgs;
home-manager.users."${myvars.username}".imports = home-modules;
}
]);
}