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
Manual Ch. 6 Package management ambiguous examples #55556
Comments
Knowledge of the Nix language is a prerequisite for being able to understand and write Nix expressions found in the NixOS manual. |
As Frederik says, you really need to understand Nix syntax before trying to tackle anything using it. Most importantly is the fact that there are no free variables – you can only access the variables that are defined using
As you can see, there is no
The
It refers to the fact that
This can be assumed from context (there is only single |
@AMDphreak thanks, fixed wiki! Also made |
Thank you for your contributions. This has been automatically marked as stale because it has had no activity for 180 days. If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity. Here are suggestions that might help resolve this more quickly:
|
Fixed in #57617 |
Issue description
Nixos declarative package management has zero explanation for why trying to install a package using
nixos.packagename
causes an error:This example code in the manual:
has this note under it, which is misleading:
I took this advice and applied it directly to my declarations in a separate .nix file, since I am subscribed to the nixos stable channel:
however,
nixos.firefox
causes an error (whereaspkgs.firefox
does not):nixos.packagename
require in order to be valid syntax? When would I use this?To add to the confusion, https://nixos.wiki/wiki/Cheatsheet contains examples (shown below) that are inconsistent with Ch. 6.
Cheatsheet:
It is not apparent to the reader that the writer excluded the required
environment = {
line before thesystemPackages
line. To make this even more confusing, thesystemPackages
statement uses awith pkgs
statement, which has zero explanation.environment =
block apparent and make the examples consistent for the sake of the reader.with
statement in this context?Proposal: add answers for these questions to the manual.
The text was updated successfully, but these errors were encountered: