Nix/doc/manual/src/command-ref
Alexander Bantyev 2384d36083
A setting to follow XDG Base Directory standard
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-02-10 20:14:06 +04:00
..
command-ref.md Convert commands 2020-07-23 18:27:12 +02:00
conf-file-prefix.md Fix XDG_CONFIG_DIRS fallback 2021-11-17 14:31:15 +01:00
env-common.md A setting to follow XDG Base Directory standard 2023-02-10 20:14:06 +04:00
experimental-commands.md Start generation of the nix.1 manpage 2020-08-17 19:33:18 +02:00
files.md Convert nix.conf manpage 2020-07-23 18:27:11 +02:00
main-commands.md Convert commands 2020-07-23 18:27:12 +02:00
nix-build.md link "store derivation" to glossary definition 2022-12-21 11:42:50 +01:00
nix-channel.md Replace the trailing markdown spaces by a backslash 2021-04-23 14:37:21 +02:00
nix-collect-garbage.md Remove stray 'Title:' from the manual 2020-10-08 17:30:40 +02:00
nix-copy-closure.md doc/manual: Fix broken internal links 2023-01-10 22:30:41 +01:00
nix-daemon.md manual: build action -> build task 2022-11-06 13:28:18 +01:00
nix-env.md link "store derivation" to glossary definition 2022-12-21 11:42:50 +01:00
nix-hash.md Replace the trailing markdown spaces by a backslash 2021-04-23 14:37:21 +02:00
nix-instantiate.md link "store derivation" to glossary definition 2022-12-21 11:42:50 +01:00
nix-prefetch-url.md Replace the trailing markdown spaces by a backslash 2021-04-23 14:37:21 +02:00
nix-shell.md Add disambiguation to man page 2022-06-14 18:13:35 +02:00
nix-store.md doc: fix anchor links in and to glossary 2023-01-24 00:19:43 +01:00
opt-common-syn.md Convert commands 2020-07-23 18:27:12 +02:00
opt-common.md manual: remove "Writing Nix Expressions" chapter 2022-08-04 11:59:25 +02:00
opt-inst-syn.md Convert commands 2020-07-23 18:27:12 +02:00
utilities.md Use mdbook 2020-07-23 18:26:48 +02:00