Skip to content

FAQ: what are flakes#545

Merged
fricklerhandwerk merged 2 commits intoNixOS:masterfrom
fricklerhandwerk:faq-flakes-what
Jun 1, 2023
Merged

FAQ: what are flakes#545
fricklerhandwerk merged 2 commits intoNixOS:masterfrom
fricklerhandwerk:faq-flakes-what

Conversation

@fricklerhandwerk
Copy link
Collaborator

this is indeed a frequently asked question.

the answer is an attempt to clarify concepts and link to the relevant reference documentation without getting into too much technical detail.

@fricklerhandwerk fricklerhandwerk requested a review from a team May 12, 2023 04:59
Copy link
Contributor

@zmitchell zmitchell left a comment

Choose a reason for hiding this comment

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

This is an explanation and thus no longer a recipe. This and #546 should probably live in a single file under the "concepts" section.

@fricklerhandwerk
Copy link
Collaborator Author

I don't fully agree but also don't disagree that it's not recipe material. The answer doesn't really explain anything, it just states the difference to classic Nix. I suggest parking it here regardless under FAQ, since it is supposed to live next to the other flakes answers.

We could still later split up the recipe answers and leave a general FAQ in a different section, which could be filled with other actual questions people have, such as how Nix relates to Docker.

@asymmetric
Copy link
Contributor

Not familiar with the proposed structure nix.dev will have, but I'm in favor of putting this under "concepts" or something else. Agree it doesn't make sense under "recipes".

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/noob-question-what-is-nix-flakes/28206/3

@zmitchell
Copy link
Contributor

Answers to questions like "what even is XYZ?" strike me as conceptual, understanding oriented materials, so it makes sense to me to put that in Concepts. I don't want this in the recipes section because we both agree it's not recipe material, meaning that at some point down the line we'll end up moving it. So, let's not make work for our future selves and put it somewhere else.

@fricklerhandwerk
Copy link
Collaborator Author

Discussed in Nix docs team meeting:

  • @fricklerhandwerk: What if we rename "FAQ" to "How-to guides" instead and create a concept section, put flakes in there?
  • @infinisil: Make "What is Flakes" link to the section in the concepts
  • @fricklerhandwerk: What about e.g. "Why are flakes controversial"? It's an FAQ
  • @zmitchell: Also move that to concepts
  • @roberth: Would be good to have a compiled glossary, because people don't know where to look and some concepts cross project boundaries
  • @fricklerhandwerk: Will create a concepts header with just the flakes section in it for now
    • @roberth: Should the concepts be migrated to glossary entries?
    • @zmitchell: Glossary entries should be short, concepts longer
    • @roberth: Seems more like a task for the individual projects
  • @fricklerhandwerk: Need to teach people how to understand the ecosystem, how parts interact with each other. Should probably have a diagram or something in the concepts header/glossary
  • decision: make a concepts section and add flakes in there as a first entry

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/2023-05-25-documentation-team-meeting-notes-50/28459/1

@fricklerhandwerk fricklerhandwerk force-pushed the faq-flakes-what branch 2 times, most recently from 1a3bdb5 to 41dd641 Compare May 31, 2023 01:07
@fricklerhandwerk
Copy link
Collaborator Author

Merging since the general direction was reviewed and agreed upon by the docs team. Details can be fixed forward.

@fricklerhandwerk fricklerhandwerk dismissed zmitchell’s stale review June 1, 2023 08:58

Implemented changes as requested

@fricklerhandwerk fricklerhandwerk merged commit 0221883 into NixOS:master Jun 1, 2023
@fricklerhandwerk fricklerhandwerk deleted the faq-flakes-what branch August 28, 2023 16:14
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.

5 participants