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:
m3ta-chiron committed 2026-10-04 13:07:14 +02:00
1 parent 8a083656eb
commit db0bfbc707
5 files changed
+310 -182

No files matched your search

Generated
+109 -57
View File
@@ -26,7 +26,7 @@
"darwin": "darwin_2",
"home-manager": "home-manager_4",
"nixpkgs": "nixpkgs_4",
"systems": "systems_3"
"systems": "systems_4"
},
"locked": {
"lastModified": 1770165109,
@@ -42,26 +42,6 @@
"type": "github"
}
},
"agent-lib": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1781348569,
"narHash": "sha256-1BJtmKSqtD0CD753ZE37RgxvCJK6Iw3iKLDDaS8trY4=",
"ref": "refs/heads/master",
"rev": "75a2ed2533b4d6d8e4a34acd37e83d98d81a5fb0",
"revCount": 30,
"type": "git",
"url": "ssh://gitea@code.m3ta.dev/m3tam3re/agent-lib-legacy"
},
"original": {
"type": "git",
"url": "ssh://gitea@code.m3ta.dev/m3tam3re/agent-lib-legacy"
}
},
"agents": {
"inputs": {
"nixpkgs": "nixpkgs_5"
@@ -270,6 +250,29 @@
"type": "github"
}
},
"colmena": {
"inputs": {
"nix-github-actions": "nix-github-actions",
"nixpkgs": [
"nixpkgs"
],
"stable": "stable",
"systems": "systems_2"
},
"locked": {
"lastModified": 1790716853,
"narHash": "sha256-IT0OZW81jngocoxi9Gg2CTSGOC1O6qLioW17nevqIUk=",
"owner": "nix-community",
"repo": "colmena",
"rev": "524ddd89f62721a92e8629063d347e7a1ed390de",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "colmena",
"type": "github"
}
},
"dank-qml-common": {
"flake": false,
"locked": {
@@ -441,11 +444,11 @@
]
},
"locked": {
"lastModified": 1788450739,
"narHash": "sha256-glZLQlzIn1fXH6PazR2iUmTo7kzzyYSshrWhLS9TqCU=",
"lastModified": 1790898470,
"narHash": "sha256-zTwuwezD0w3hpga6a6P8emidzAZFyWqlNeRBlpWOOl8=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "31729ca8cbdb4fa927b34e5f4353e6a83f39e993",
"rev": "024633cd702b10285db5cb19b40ad48d2399ba60",
"type": "github"
},
"original": {
@@ -530,16 +533,16 @@
"uv2nix": "uv2nix"
},
"locked": {
"lastModified": 1788204567,
"narHash": "sha256-Ii9xP2fKUpvCcwWZuxJ0g3CZ+IL2UZH14pUNvBfdclc=",
"lastModified": 1790244527,
"narHash": "sha256-y6NaoG+HCeMPhxRsBXrRFef4hp3FF1svSPNKpI6Xz/E=",
"owner": "NousResearch",
"repo": "hermes-agent",
"rev": "29112bef099274229cadff79cdff7bf7b99c4b77",
"rev": "f97608f178d1ffeca59860195ab7da295f7c8e5f",
"type": "github"
},
"original": {
"owner": "NousResearch",
"ref": "v2026.8.31",
"ref": "v2026.9.24",
"repo": "hermes-agent",
"type": "github"
}
@@ -705,7 +708,7 @@
"rose-pine-hyprcursor",
"nixpkgs"
],
"systems": "systems_4"
"systems": "systems_5"
},
"locked": {
"lastModified": 1709914708,
@@ -726,15 +729,15 @@
"bun2nix": "bun2nix",
"flake-parts": "flake-parts_2",
"nixpkgs": "nixpkgs_3",
"systems": "systems_2",
"systems": "systems_3",
"treefmt-nix": "treefmt-nix"
},
"locked": {
"lastModified": 1790311386,
"narHash": "sha256-bOexMr1RcAS6PFcMnEfwe5apsEoaLmSUUxlqUftd2uU=",
"lastModified": 1791089625,
"narHash": "sha256-0MHqf09PIjbpfg7KhUN/r1vGJ9OS5A2TSMq99n+Y7XU=",
"owner": "numtide",
"repo": "llm-agents.nix",
"rev": "1446b3cb242c8cd24619b58054112cc2d870e591",
"rev": "372f0337e8170e55ff0c017cd43ab73b02a062ad",
"type": "github"
},
"original": {
@@ -759,17 +762,14 @@
"nur": "nur"
},
"locked": {
"lastModified": 1790922417,
"narHash": "sha256-3scqz97Dg5eWH0ca7y2GHueROTuV2XGsPTSZSzKpOvE=",
"ref": "refs/heads/master",
"rev": "dfe148dc6847b5feb638d8c0e11db8b226f29a41",
"revCount": 146,
"type": "git",
"url": "ssh://gitea@code.m3ta.dev/m3tam3re/m3ta-home"
"lastModified": 1790925342,
"narHash": "sha256-kqpTlAfyAaeSbEHpM9ASBVXBWzf2BQDAODu1WXw/LTc=",
"path": "/home/m3tam3re/p/NIX/m3ta-home",
"type": "path"
},
"original": {
"type": "git",
"url": "ssh://gitea@code.m3ta.dev/m3tam3re/m3ta-home"
"path": "/home/m3tam3re/p/NIX/m3ta-home",
"type": "path"
}
},
"m3ta-nixpkgs": {
@@ -810,11 +810,11 @@
"opencode": "opencode_2"
},
"locked": {
"lastModified": 1789748631,
"narHash": "sha256-XKtTXBsCcou75U5TnqfxL63ujBAGWbettPdW0XaGB80=",
"lastModified": 1791024865,
"narHash": "sha256-Jq3dpGYIg31LJK/6xfXe87RpwiKp/ldEzR7oD9YAXLM=",
"ref": "refs/heads/master",
"rev": "da3c58993388ad853a2276e72a13f6c38cdf8077",
"revCount": 392,
"rev": "dd9d43bffee197301f542ddc405e6db996dbd7b3",
"revCount": 395,
"type": "git",
"url": "ssh://gitea@code.m3ta.dev/m3tam3re/nixpkgs"
},
@@ -861,6 +861,27 @@
"type": "github"
}
},
"nix-github-actions": {
"inputs": {
"nixpkgs": [
"colmena",
"nixpkgs"
]
},
"locked": {
"lastModified": 1737420293,
"narHash": "sha256-F1G5ifvqTpJq7fdkT34e/Jy9VCyzd5XfJ9TO8fHhJWE=",
"owner": "nix-community",
"repo": "nix-github-actions",
"rev": "f4158fa080ef4503c8f4c820967d946c2af31ec9",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nix-github-actions",
"type": "github"
}
},
"nixlib": {
"locked": {
"lastModified": 1736643958,
@@ -1055,11 +1076,11 @@
},
"nixpkgs_3": {
"locked": {
"lastModified": 1790238896,
"narHash": "sha256-ym4BG18Pu2awiJIehla1Lo9xiB2QYRcCzW3SB74gEBY=",
"lastModified": 1790600678,
"narHash": "sha256-6k3n7X2UsZ6tAlWTz99RimiZab+17tMUrw9sRUcELiA=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "34ca302a9572963c02e385c056be37c85ff51b77",
"rev": "f45c6f04c2f013f004bf94e284e95d72898d9393",
"type": "github"
},
"original": {
@@ -1393,7 +1414,7 @@
"root": {
"inputs": {
"agenix": "agenix",
"agent-lib": "agent-lib",
"colmena": "colmena",
"disko": "disko",
"hermes-agent": "hermes-agent",
"home-manager": "home-manager_3",
@@ -1474,6 +1495,22 @@
"type": "github"
}
},
"stable": {
"locked": {
"lastModified": 1790608446,
"narHash": "sha256-CYsYyk0zInkpQ6ojuCpvb9MahlhFXkeZpzjOU9Lxkpk=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "c619be20e3508300c88af8aeafeaa7017559313f",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "release-26.05",
"repo": "nixpkgs",
"type": "github"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
@@ -1491,16 +1528,16 @@
},
"systems_2": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"lastModified": 1776166891,
"narHash": "sha256-bI8yrEGjrohR5hkQox7UrxDH7XqrYMwI8SL/LrJ1+S8=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"repo": "triplet",
"rev": "6de7bc09397911ce03636afbcf6118745ab2cda0",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"repo": "triplet",
"type": "github"
}
},
@@ -1520,6 +1557,21 @@
}
},
"systems_4": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"systems_5": {
"locked": {
"lastModified": 1689347949,
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
@@ -1534,7 +1586,7 @@
"type": "github"
}
},
"systems_5": {
"systems_6": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
@@ -1617,7 +1669,7 @@
},
"utils": {
"inputs": {
"systems": "systems_5"
"systems": "systems_6"
},
"locked": {
"lastModified": 1710146030,