Configurable-flakes: Flakes with declared options

In my opinion flakes should somehow support building packages with different build options so I made a small flake library that uses the nixos module system declare options for flakes.

If someone wants to create a flake using different options they just have to call the original
flake with withConfig and supply their configuration.


This is cool, sort of like overlays for flakes. I think it could tie in well with flake-parts, imagine if any flake-parts built flake could be re-configured after the fact.

1 Like

I agree, having this feature in flake-parts would be really neat. :slight_smile: