Skip to content

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

Merged
hsjobeki merged 1 commit into
NixOS:masterfrom
KiaraGrouwstra:patch-3
Apr 8, 2026
Merged

hsjobeki merged 1 commit into
NixOS:masterfrom
KiaraGrouwstra:patch-3

Conversation

@KiaraGrouwstra

Copy link
Copy Markdown
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

@friedow friedow left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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.

@hsjobeki
hsjobeki merged commit 7f69612 into NixOS:master Apr 8, 2026
4 checks passed
@KiaraGrouwstra
KiaraGrouwstra deleted the patch-3 branch April 8, 2026 10:54
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