Colmena | 297 Members | |
| A simple, stateless NixOS deployment tool - https://github.com/zhaofengli/colmena | 101 Servers |
| Sender | Message | Time |
|---|---|---|
| 4 Feb 2022 | ||
It occurs in nixos-unstable with sandboxed documentation builds enabled, where documentation.nix uses modulesPath to strip off the prefixes of module paths | 20:35:20 | |
| should i backport 0.2.1 to nixpkgs stable for you? 😄 | 20:35:32 | |
| oh | 20:35:58 | |
| nevermind... i see now | 20:36:02 | |
| ha | 20:36:03 | |
| thank you so much Zhaofeng Li ! | 20:36:18 | |
| i'm too lazy to migrate from morph 😓 | 20:37:10 | |
| Colmena should hopefully just work with your existing morph configs | 20:38:43 | |
| you do have to change how you pin nixpkgs, though | 20:39:05 | |
| * you do have to change how you pin nixpkgs, though: https://zhaofengli.github.io/colmena/unstable/tutorial/migration.html | 20:39:27 | |
hexa: i haven't used morph ... but i can't say enough good things about colmenathis project is a breath of fresh air after having to deal with nixops issues (no stable release on python3) for a while | 20:39:33 | |
| well … nixops is on another level 😀 | 20:40:14 | |
| i don't mean to overwhelm Zhaofeng Li with compliments... but what a wonderfully simple tool to use ❤️ | 20:40:16 | |
| morph just seems to be … enough for the maintainers | 20:40:23 | |
In reply to @hexa:lossy.networkYes indeed, NixOps does much more than morph/colmena aims to do with the IaaS features | 20:43:20 | |
| i moved from morph. its missing some creature comforts 🤔 | 20:41:48 | |
| People have been asking about provisioning in Colmena, and that's better handled by tools that are focused on provisioning (e.g., terraform) than Colmena itself: https://github.com/zhaofengli/colmena/issues/42 | 20:44:57 | |
| One example is https://github.com/justinas/nixos-ha-kubernetes which uses terraform's state from a Colmena configuration | 20:45:25 | |
| I don't expect provisioning | 20:46:44 | |
| sounds very much like scope creep | 20:47:21 | |
| yeah, provisioning seems inherently incompatible with statelessness | 20:47:19 | |
| Buckley: I have found a decent solution, I think | 20:47:56 | |
eval-config has an additional parameter extraModules https://github.com/NixOS/nixpkgs/blob/a0ad8dcd354c67f084511e4ae78a27af83df95fd/nixos/lib/eval-config.nix#L28 - That allows you to add your usual modules to modules, and colmena.nixosModules.deploymentOptions to extraModules | 20:48:45 | |
| So in general it looks like this for me now:
| 20:49:46 | |
| i think my ideal scenario would be for nixosConfigurations to import the colmena module explicitly, and then nxiosConfigurations to be read directly by colmena... though i do not claim this to be an easy lift :D | 20:51:41 | |
| ive poked around the codebase a bit in hopes of writing some PRs but i just haven't put enough time into the rust stuff to figure it out yet | 20:52:41 | |
In reply to @buckley310:matrix.orgYes, that would be the "best case", but I think I'm happy with my shim-method now 🙂 | 20:56:18 | |
| shims for days 😎 | 21:00:59 | |
[zhaofengli/colmena] cole-h opened
issue
#54: Don't require meta.nixpkgs if meta.nodeNixpkgs is set for the target host(s)
| 23:48:40 | |
[zhaofengli/colmena] cole-h opened
issue
#55: Move meta.nodeNixpkgs to deployment.nixpkgs inside the node config
| 23:56:28 | |