aboutsummaryrefslogtreecommitdiff
path: root/doc/manual/src/command-ref
AgeCommit message (Collapse)Author
2023-05-17Convert short nix options to long onesAlexander Schmolck
e.g. nix-env -e subversion => nix-env --uninstall subversion The aim is to make the documentation less cryptic for newcomers and the long options are more self-documenting. The change was made with the following script: <https://github.com/aschmolck/convert-short-nix-opts-to-long-ones> and sanity checked visually.
2023-05-15Reword info on XDG base dirs (#8338)Valentin Gagarin
This gives some more context and should clarify why it works that way. Also link it from the section on `NIX_USER_CONF_FILES`. Co-authored-by: John Ericson <git@JohnEricson.me>
2023-05-15list files used by `nix-channel`Valentin Gagarin
2023-04-28display documentation on manifest files separatelyValentin Gagarin
it's probably better not to show the manifest file documentation in the command-specific pages, because these are implementation details that are not really practically useful. this means no additional hassle for building the manual, but clutters the table of contents a bit.
2023-04-26move manifest information to the bottom of the pageValentin Gagarin
2023-04-26move compatibility info to `nix profile` docsValentin Gagarin
2023-04-26increase heading level Valentin Gagarin
otherwise the headings won't match at the point where they are included. this is a bit hacky and brittle, but works for now.
2023-04-26update description on how profiles work Valentin Gagarin
adapt to the example listing
2023-04-26fix typos and wordingValentin Gagarin
2023-04-26add colons to connect listings with descriptionsValentin Gagarin
2023-04-26list information regular users firstValentin Gagarin
this is to make it consistent everywhere
2023-04-26Document user files of nixAlexander Bantyev
2023-04-17Merge pull request #7514 from fricklerhandwerk/opt-IValentin Gagarin
remove incorrect reference to `NIX_PATH` documentation
2023-04-17use @docroot@ linkValentin Gagarin
2023-04-17add link to `nix-conf` settingValentin Gagarin
Co-authored-by: John Ericson <git@JohnEricson.me>
2023-04-14Start cross-referencing experimental featuresJohn Ericson
- Create a glossary entry for experimental features. - Have the man page experimental feature notice link `nix-commmand`. (Eventually this should be programmed, based on whether the command is experimental, and if so what experimental feature does it depend on.) - Document which installables depend on which experimental features. I tried to use the same style (bold warning and block quote) that the top of the man page uses. Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2023-04-05remove incorrect referenceValentin Gagarin
the semantics are not explained in the referenced section any more, they have been moved to the documentation for common options in the new CLI [0]. [0]: 703d863a48f549b2626382eda407ffae779f8725
2023-04-05Merge pull request #7849 from milahu/fix-man-nix-shellValentin Gagarin
docs: fix nix-shell commands
2023-04-05docs: fix nix-shell commandsmilahu
2023-03-30Split nix-env and nix-store documentation per-subcommandAlexander Bantyev
Documentation on "classic" commands with many sub-commands are notoriously hard to discover due to lack of overview and anchor links. Additionally the information on common options and environment variables is not accessible offline in man pages, and therefore often overlooked by readers. With this change, each sub-command of nix-store and nix-env gets its own page in the manual (listed in the table of contents), and each own man page. Also, man pages for each subcommand now (again) list common options and environment variables. While this makes each page quite long and some common parameters don't apply, this should still make it easier to navigate as that additional information was not accessible on the command line at all. It is now possible to run 'nix-store --<subcommand> --help` to display help pages for the given subcommand. Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2023-03-27Fix more profile dirs in docsJohn Ericson
Picking up where #8078 left off.
2023-03-23Merge pull request #6865 from zuzuleinen/manual-nix-path-emptyValentin Gagarin
document what happens when NIX_PATH is empty
2023-03-22add linksValentin Gagarin
2023-03-16nix-hash: support base-64 and SRI formatYueh-Shun Li
Add the --base64 and --sri flags for the Base64 and SRI format output. Add the --base16 flag to explicitly specify the hexadecimal format. Add the --to-base64 and --to-sri flag to convert a hash to the above mentioned format.
2023-02-28nix-store: read paths from standard inputTimothy DeHerrera
Resolves #7437 for new `nix-store` by adding a `--stdin` flag.
2023-02-10Merge pull request #5588 from tweag/balsoft/xdgThéophane Hufschmitt
Follow XDG Base Directory standard
2023-02-10A setting to follow XDG Base Directory standardAlexander Bantyev
XDG Base Directory is a standard for locations for storing various files. Nix has a few files which seem to fit in the standard, but currently use a custom location directly in the user's ~, polluting it: - ~/.nix-profile - ~/.nix-defexpr - ~/.nix-channels This commit adds a config option (use-xdg-base-directories) to follow the XDG spec and instead use the following locations: - $XDG_STATE_HOME/nix/profile - $XDG_STATE_HOME/nix/defexpr - $XDG_STATE_HOME/nix/channels If $XDG_STATE_HOME is not set, it is assumed to be ~/.local/state. Co-authored-by: Théophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com> Co-authored-by: Tim Fenney <kodekata@gmail.com> Co-authored-by: pasqui23 <pasqui23@users.noreply.github.com> Co-authored-by: Artturin <Artturin@artturin.com> Co-authored-by: John Ericson <Ericson2314@Yahoo.com>
2023-01-30manual: Document that the store timestamp is now 1, not 0Anders Kaseorg
Commit 14bc3ce3d6d5745717fa19b8b43b5fdd117ff757 (0.13~43) changed the timestamps in the Nix store from 0 to 1. Update the nix-store man page to match. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2023-01-24doc: fix anchor links in and to glossaryFelix Uhl
2023-01-20Merge pull request #7490 from fricklerhandwerk/doc-realiseThéophane Hufschmitt
define the terms "realise" and "valid" for store paths
2023-01-10Merge pull request #7541 from hercules-ci/check-manual-linksRobert Hensing
Check links in the manual
2023-01-10doc/manual: Fix broken internal linksRobert Hensing
The targets I could find.
2023-01-09Add a pointer from "realising" to `nix log`. (#4876)Jeremy Fleischman
2023-01-03define the terms "realise" and "valid" for store pathsValentin Gagarin
add links to the glossary definition where the terms are used
2022-12-21link "store derivation" to glossary definitionValentin Gagarin
2022-12-12Merge pull request #7421 from edolstra/lazy-trees-trivial-changesEelco Dolstra
Trivial changes from the lazy-trees branch
2022-12-12Tweak NIX_PATH descriptionEelco Dolstra
2022-12-12Fix indentationEelco Dolstra
2022-12-12Manual improvementsEelco Dolstra
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2022-12-08Merge pull request #7379 from fricklerhandwerk/refactor-generate-optionsThéophane Hufschmitt
refactor rendering documentation of options
2022-12-07use HTML anchors for config parametersValentin Gagarin
this avoids incorrect rendering on the man pages, since `lowdown` neither parses the anchor syntax nor HTML. this should rather be fixed in lowdown, as adding more anchors would otherwise produce ever more noise and error-prone repetition.
2022-12-07Trivial changes from the lazy-trees branchEelco Dolstra
2022-12-07Remove repeat and enforce-determinism optionsLinus Heckemann
These only functioned if a very narrow combination of conditions held: - The result path does not yet exist (--check did not result in repeated builds), AND - The result path is not available from any configured substituters, AND - No remote builders that can build the path are available. If any of these do not hold, a derivation would be built 0 or 1 times regardless of the repeat option. Thus, remove it to avoid confusion.
2022-11-06manual: build action -> build taskValentin Gagarin
after discussing this with multiple people, I'm convinced that "build task" is more precise: a derivation is not an action, but inert until it is built. also it's easier to pronounce. proposal: use "build task" for the generic concept "description of how to derive new files from the contents of existing files". then it will be easier to distinguish what we mean by "derivation" (a specific data structure and Nix language value type) and "store derivation" (a serialisation of a derivation into a file in the Nix store).
2022-09-28nix-copy-closure: improve wordingSolene Rapenne
2022-08-19Update doc/manual/src/command-ref/env-common.mdAndrei Boar
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2022-08-19cover empty string caseAndrei Boar
2022-08-04Update doc/manual/src/command-ref/env-common.mdAndrei Boar
Co-authored-by: Jan Tojnar <jtojnar@gmail.com>
2022-08-04Update doc/manual/src/command-ref/env-common.mdAndrei Boar
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2022-08-04Merge branch 'manual-nix-path-empty' of github.com:zuzuleinen/nix into ↵Andrei Boar
manual-nix-path-empty