Visitar URL original
doc: link NIX_PATH mentions to its definition by ThePunisher30 · Pull Request #16752 · NixOS/nix · GitHub
Skip to content

doc: link NIX_PATH mentions to its definition - #16752

Open
ThePunisher30 wants to merge 1 commit into
NixOS:masterfrom
ThePunisher30:doc-link-nix-path
Open

ThePunisher30 wants to merge 1 commit into
NixOS:masterfrom
ThePunisher30:doc-link-nix-path

Conversation

@ThePunisher30

@ThePunisher30 ThePunisher30 commented Nov 2, 2026 •

Copy link
Copy Markdown

Motivation

NIX_PATH is defined in command-ref/env-common.md, but several pages mention it without linking to that definition, which makes the definition hard to find.

Closes: #7142

Implementation

Linked the remaining unlinked mentions to env-common.md#env-NIX_PATH:

  • doc/manual/source/command-ref nix-instantiate.md (--find-file)
  • doc/manual/source/command-ref/nix-shell.md (the --pure note and the -p paragraph)
  • src/nix/build.md (the nix build example)

The first two pages include env-common.md, so they use the short #env-NIX_PATH anchor, as nix-channel.md already does. build.md is outside command-ref, so it uses the full @docroot@ path. I did not touch opt-common.md, nix-channel.md or language/index.md, which already link to it.

NIX_PATH is defined in command-ref/env-common.md, but several pages
mention it in prose without linking there, so readers have no direct
way to find what it does or how it is resolved.

Link the mentions in nix-instantiate, nix-shell and nix build to the
definition.

Closes: NixOS#7142

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation new-cli Relating to the "nix" command

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

manual: link occurrences of NIX_PATH to its definition

1 participant