Skip to content

/concepts/flakes: add dependency management alternative flake = false;#1213

Open
KiaraGrouwstra wants to merge 1 commit intoNixOS:masterfrom
KiaraGrouwstra:patch-3
Open

/concepts/flakes: add dependency management alternative flake = false;#1213
KiaraGrouwstra wants to merge 1 commit intoNixOS:masterfrom
KiaraGrouwstra:patch-3

Conversation

@KiaraGrouwstra
Copy link
Contributor

clarifies that specifying flake = false; on flake inputs can help resolve some of its drawbacks - in this case (if used consistently) getting duplicate versions and having to set follows. (this would not solve eager fetching, which would instead be addressed by lazy trees.)

to make it more explicit what alternatives address what, a proper approach might be #1212.

clarifies that specifying `flake = false;` on flake inputs can help resolve some of its drawbacks - in this case (if used consistently) getting [duplicate versions](https://zimbatm.com/notes/1000-instances-of-nixpkgs) and having to set `follows`.
(this would not solve eager fetching, which would instead be addressed by [lazy trees](NixOS/nix#13225).)

to make it more explicit what alternatives address what, a proper approach might be NixOS#1212.
@KiaraGrouwstra KiaraGrouwstra requested a review from a team as a code owner February 16, 2026 08:28
Copy link
Member

@friedow friedow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Explaining the usage of flake = false is very valuable to the flakes documentation. I think just mentioning this as an alternative under dependency management does not explain the feature well enough though.

I'd suggest explaining what flake = false does in an own paragraph, or two :). Would you want to change this PR this way?

@hsjobeki
Copy link
Collaborator

I'd add a heading just for this concept and add a reference here to that heading. So this section stays focused.
But we can add this in a follow up. This PR on its own makes sense to add.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants