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
nixos/doc: documentation angle bracket syntax #63033
Conversation
LGTM,would you mind only committing related changes ? |
Thank you for your contributions.
|
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.
Could you also drop the formatting changes in unrelated files so it is easier to review?
@@ -17,7 +17,10 @@ | |||
<warning> | |||
<para> | |||
Unfortunately, Nixpkgs currently lacks a way to query available | |||
configuration options. | |||
configuration options from command line. You can however go to |
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.
These are different options than the section is talking about.
You are describing NixOS module options but this is talking about package options (that is the attribute set you pass as config
when creating nixpkgs
, or through nixpkgs.config
NixOS option. There still is not a way to query those as far as I am aware.
And for NixOS options, you can actually use man configuration.nix
or nixos-option
commands.
@@ -215,6 +215,17 @@ xlink:href="http://nixos.org/nix/manual/#chap-writing-nix-expressions">Nix | |||
</entry> | |||
<entry>Apply a function to every element of a list (evaluates to <literal>[ 2 4 6 ]</literal>)</entry> | |||
</row> | |||
<row> |
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.
Also this should probably go to basic values group, not the builtin functions.
I marked this as stale due to inactivity. → More info |
Closing as this is long out of sync with the Nixpkgs manual, and since the Nix manual now documents the syntax and gives it a proper name so we can talk about it: lookup path |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/wiki-nixos-org-is-now-live/42570/59 |
Motivation for this change
Lack of documentation for
<...>
syntax, and add link to https://nixos.org/nixos/options.html. The goal is to partially solve the 3 year old bug NixOS/nix#338.Things done
I just modified
nixos/doc/manual/configuration/customizing-packages.xml
andnixos/doc/manual/configuration/summary.xml
, and then I ranmake
innixos/doc/manual
, andnix-build nixos/release.nix -A manual.x86_64-linux
at the source.sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)