NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.08k stars 14.06k forks source link

[Tracking] Documentation: Remove `nix-env` from the Nixpkgs manual #265058

Open fricklerhandwerk opened 1 year ago

fricklerhandwerk commented 1 year ago

Problem

Beginners are still nudged to use nix-env, although that will not do what they expect or need from their Nix setup soon after. Lots of parts in the Nixpkgs manual are quite old, from a time where declarative patterns were not as much evolved yet. Today we have more predictable alternatives, and should at the very least implicitly recommend ephemeral environments wherever possible.

This was discussed with the @nixos/documentation-team

Related: https://github.com/NixOS/nix/issues/7769

Proposal

Remove all occurrences of nix-env. And you can help!

How to help

There may be sections that need a complete rewrite to start making sense. Ideally the change should still focus on simply avoiding nix-env. If you're interested in a particular topic, consider owning that piece of documentation and reworking it to be up-to-date with current best practices.

Work done

nixos-discourse commented 1 year ago

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

https://discourse.nixos.org/t/2023-11-02-documentation-team-meeting-notes-91/34938/1

nixos-discourse commented 6 months ago

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

https://discourse.nixos.org/t/is-it-wrong-for-me-to-ignore-flakes-and-home-manager-until-they-become-officially-integrated-into-nix/44026/9