feat(colmena): set up Colmena as deploy tool for all NixOS hosts
- Add colmena flake input (nix-community >= 0.5.0) and CLI to devShell - Extract shared nixosHosts module map consumed by BOTH nixosConfigurations (nixos-rebuild/nh) and the Colmena hive, so local rebuilds and remote deploys cannot drift apart - Add colmenaHive output via colmena.lib.makeHive (direct flake evaluation, required on Nix >= 2.21) plus legacy colmena output - Tags: m3-atlas/m3-helios/m3-hermes = server, m3-ares/m3-kratos = desktop with allowLocalDeployment; targetUser m3tam3re - meta.allowApplyAll = false guards bare 'colmena apply'; use 'colmena apply --on @server' or 'apply-local' instead - Document deploy commands in AGENTS.md Note: colmena builds render system.nixos.version as 26.11pre-git (colmena's evaluator has no flake sourceInfo) - cosmetic only, package closures are identical to nixos-rebuild. Includes pending working-tree changes: hermes-agent bump v2026.9.24, agent-lib input removal, m3ta-home switched to local path checkout, m3-kratos monitor setup update, alejandra reformat of rofi-pass.nix.
This commit is contained in:
1 parent
8a083656eb
commit
db0bfbc707
5 files changed
+310
-182
No files matched your search
@@ -304,6 +304,10 @@ This provides the familiar shell/editor/CLI setup but with work git credentials
|
||||
| **Enter dev shell** | `nix develop` | Includes alejandra, nixd, agenix, statix, deadnix |
|
||||
| **Build host** | `sudo nixos-rebuild switch --flake .#m3-ares` | Replace hostname as needed |
|
||||
| **Dry run build** | `sudo nixos-rebuild dry-run --flake .#m3-ares` | Validate without applying |
|
||||
| **Deploy servers** | `nix develop -c colmena apply --on @server` | Colmena: all hosts tagged `server` via SSH |
|
||||
| **Deploy one host** | `nix develop -c colmena apply --on m3-atlas` | Colmena: single remote host |
|
||||
| **Deploy this host** | `nix develop -c colmena apply-local` | Colmena: local desktop (uses sudo to activate) |
|
||||
| **Preview deploy** | `nix develop -c colmena build --on m3-atlas` | Colmena: build closure without switching |
|
||||
| **List hosts** | `nix flake show` | Shows all NixOS configurations |
|
||||
| **Update flake** | `sudo nixos-rebuild switch --flake .#m3-ares --update-input nixpkgs` | Update specific input |
|
||||
| **Format code** | `alejandra .` | Run before committing |
|
||||
|
||||
Reference in new issue
Block a user