Skip to content

Using nested profiles with the new suites? #346

Answered by blaggacao
lycheese asked this question in Q&A
Discussion options

You must be logged in to vote

The new rakeLeaves implementation achieves being more universal than the previous implementation, for example , with slight modifications, rakeLeaves is being used for hosts and modules, as well. Thus it promotes clarity and reusability. One complaint we had in the past is that the mental model for folder imports has varied too much.

Now, rakeLeaves recursively walkes through folders and rakes leaves. Leaves are: 1) files ending in nix or 2) folders that contain a default.nix file.

Those leaves are raked into a nested attribute set according to their place in the folder hierarchy.

The general solution to keep the organization primitives that previously where implicitly allowed is to make …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lycheese
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants