lix/doc/manual/src
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
..
advanced-topics Merge branch 'master' into remove-repeat 2022-12-07 16:04:47 +01:00
architecture doc/manual: Fix broken internal links 2023-01-10 22:30:41 +01:00
command-ref A setting to follow XDG Base Directory standard 2023-02-10 20:14:06 +04:00
contributing Add rapidcheck dependency for testing 2023-01-23 07:05:50 -05:00
figures
installation Deletes build users and group 2022-12-23 14:06:51 +05:30
language Merge branch 'master' into referenceablePaths 2023-01-30 10:31:00 +01:00
package-management Update binary-cache-substituter.md (#7628) 2023-01-18 15:08:20 +00:00
release-notes Fix the release-notes 2023-01-30 10:32:23 +01:00
glossary.md doc: fix anchor links in and to glossary 2023-01-24 00:19:43 +01:00
introduction.md manual: build action -> build task 2022-11-06 13:28:18 +01:00
quick-start.md
SUMMARY.md.in Release notes 2023-01-17 13:23:31 +01:00