Colmena | 330 Members | |
| A simple, stateless NixOS deployment tool - https://github.com/zhaofengli/colmena | 117 Servers |
| Sender | Message | Time |
|---|---|---|
| 23 Aug 2022 | ||
| 11:32:18 | ||
| 17:09:22 | ||
| 27 Aug 2022 | ||
is it typical to define something like fileSystems."/" ... or all the boot.* in defaults? I'm using virtualization/kubevirt.nix profile for nixos-generate but it seems that I need to copy its contents over to make things tick. | 16:58:46 | |
| 29 Aug 2022 | ||
(missed this) Hmm, maybe there is something else. Have you tried --show-trace? | 15:50:39 | |
| You can use everything that nixos-generate generated for you. A typical pattern is: | 15:52:29 | |
| 30 Aug 2022 | ||
| 14:41:55 | ||
| 14:56:00 | ||
| 2 Sep 2022 | ||
| 14:04:40 | ||
| 14:32:33 | ||
| heya | 14:38:35 | |
| So... I'm looking at colmena for replacing my own 100 line deployment module. | 14:44:43 | |
| It seems like the design is quite similar, with nodes (in my case they are called hosts) being passed in as specialArgs | 14:45:00 | |
| What I don't like at all is that colmena itself is not tracked at a flake dependency | 14:45:30 | |
| And that it has its own evaluation entry points | 14:45:43 | |
It would be way cooler if colmena was a flake, that provides a function makeHive | 14:46:07 | |
colmena could then use .# as entry point with the output of makeHive providing the necessary things.And the colmena package itself could be re-exported to my flake. So that I do nix run .#colmena apply and it uses the colmena version pinned in my flake. | 14:50:02 | |
| As a bonus, it would remove the need for this wrapper flake to get pure evaluation | 14:50:43 | |
| Another bonus: This could make it possible to be compatible with nixosConfigurations and nixos-rebuild and so on | 15:14:47 | |
| ^ | 16:46:57 | |
| Yeah, I've previously suggested this but it wasn't a direction Zhaofeng Li was particularly interested in :/ | 16:47:39 | |
| I'm currently doing a hack like
to be able to get at least an approximation of the configs (enough to be able to build it in hydra, for example) | 16:48:55 | |
| but I think sooner or later I'll be switching to another tool that actually wants to support this, possibly deploy-rs | 16:49:18 | |
| Of course now I can't find the old messages where we discussed this... I guess it was before I moved homeservers | 16:53:28 | |
I would be on-board if the Colmena flake is generating the nixosConfigurations-like structure with Colmena-specific metadata (this is similar to the evaluator idea that @blaggacao is proposing) rather than consuming an existing nixosConfigurations. We would need some versioning/schema contract to ensure compatibility between the flake output and the Colmena executable. | 18:26:56 | |
| You could just tell the users that the colmena binary has to be from the exact same version as the hive expression | 18:28:22 | |
| 18:28:59 | |
And yes, the hive expression should output nixosConfigurations-like structure, the input would be similar to what outputs.colmena is currently | 18:29:50 | |
| So you mean something like:
-> | 18:29:51 | |
| * So you mean something like: ? ``` mkFlake ... ``` -> ``` nixosConfigurations = ... __colmena = ... ``` | 18:30:45 | |
| To further expand on that, consuming the existing We could remove this need and make the user specify the
The end result is a level of functionality noticeably different from "normal" Colmena that would necessitate a lot of documentation changes and still be confusing to users. | 18:31:10 | |