New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove Basic Package Management section #7974
remove Basic Package Management section #7974
Conversation
page removed in NixOS/nix#7974
What's the alternative to nix-env? (Experimental commands shouldn't be part of the answer here.) |
I fundamentally disagree with the premise of this PR. There is also the UX issue that installing via the command line is a lot easier than having to edit a configuration file and deal with a complex language and syntax errors. |
I think we can still side-step whether or not |
I agree that for some users imperative package management is the way to go, and I do not want to discuss the reasons here. That is not on topic. Though I want to use this stage to say, why I still do not want to use
So we really need an imperative tool, which works much more like users expect but at the same time actually uses channels… Which also puts files in place where they are needed (and cleans them up eventually), or simply tells users when a package is not suitable for being installed by this means (eg. linux kernel). I am aware that
And I am pretty sure that |
@NobbZ I agree on all points and yet this is somewhat unrelated to this particular issue. My agenda here is to essentially state:
The main motivation behind this particular set of changes is to avoid the impression that going down a path that leads to confusion is somehow encouraged. |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2023-03-31-nix-team-meeting-minutes-45/27002/1 |
Arguably combining arbitrary versions of packages in a mutable manner requires more expertise and intimate knowledge about the packages involved than using an atomic configuration management tool such as NixOS or home-manager. So "basic" sets the wrong expectations. Can we at least rename this to |
this is the first thing most beginners see, and it misleads them into assuming `nix-env` is appropriate for doing anything but setting and reverting profile generations. this chapter is the root of most evil around the ecosystem, and today we finally close it for good.
35ea39f
to
e77fc90
Compare
We could, but then we'd have to introduce the counterpart to that, which is not the responsibility of this manual to begin with. I'd rather dissolve those narrative pages into reference documentation and then focus on making the UI self-explanatory such that, once we have that, any user-facing introduction can be very brief. |
I think we could rename and then remove.
The rename can also help justify why it belongs on |
How would that additional motion help? What I could do is go over the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nix-env
still has its own documentation.
page removed in NixOS/nix#7974
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2023-10-23-documentation-team-meeting-notes-88/34562/1 |
Motivation
this is the first thing most beginners see, and it misleads them into
assuming
nix-env
is appropriate for doing anything but setting andreverting profile generations.
this chapter is the root of most evil around the ecosystem, and today we
finally close it for good.
Context
the corner stone of #7769
discussed here at length:
https://discourse.nixos.org/t/depreciate-the-use-of-nix-env-to-install-packages/20139
@domenkozar @Ericson2314 @ianthehenry @ners @rapenne-s
Checklist for maintainers
Maintainers: tick if completed or explain if not relevant
tests/**.sh
src/*/tests
tests/nixos/*
Priorities
Add 👍 to pull requests you find important.