mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-30 01:53:57 +01:00
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:
1 parent
9a3cf189cd
commit
3b3992468b
8 files changed
+65
-67
No files matched your search
+4
-25
@@ -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;
|
||||
}
|
||||
]);
|
||||
}
|
||||
Reference in new issue
Block a user