hercules-ci / flake-parts

❄️ Simplify Nix Flakes with the module system
https://flake.parts
MIT License
761 stars 41 forks source link

Make `flake.<output>` mergeable #12

Closed Mic92 closed 2 years ago

Mic92 commented 2 years ago

It's convenient to split of package sets or set of nixos systems into multiple files. However the current type on flake prevent that. I cannot define nixos configurations in multiple modules:

i.e.:

roberth commented 2 years ago

This solution is a bit too general. I don't think we should be making assumptions about the structure of new output fields, and we don't have to because we can declare the new fields as options. That will give us precise behavior and fewer surprises like #11.

Mic92 commented 2 years ago

Thanks for the quick fix.