nlewo / comin

GitOps For NixOS Machines
MIT License
343 stars 12 forks source link

Avoid Nix evaluation on the target #8

Open colemickens opened 7 months ago

colemickens commented 7 months ago

Hi,

This looks very close to a tool I've been imagining in my head.

In my case, my CI (which is busted for other reasons), outputs it's built toplevels like this: https://github.com/colemickens/nixcfg/tree/3e5bf65bebeae617310a3624803d90d4abedc9ff/.latest

So, it would be nice to pass a path through to comin to tell it to just read an outPath rather than doing an eval. This would make comin more useful on really memory-starved targets that probably can't eval their own configuration.

nlewo commented 6 months ago

@colemickens Thanks for this topic!

I find it really interesting, but i don't think I will start working/thinking on this soon.

For the record, this NixOS discourse comment proposes to use Git orphan branches to store built switch-to-configuration store paths.