Files
lix/tests
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
..
2022-11-23 12:06:47 -05:00
2020-04-14 18:45:06 +02:00
2023-01-30 11:21:52 +01:00
2022-09-26 16:57:06 +02:00
2021-07-07 10:48:47 +02:00
2019-12-13 19:05:26 +01:00
2022-12-08 16:03:20 -05:00
2023-01-18 16:33:39 +01:00
2014-08-21 21:50:19 +02:00
2023-01-03 17:19:16 +01:00
2022-12-06 16:36:42 +01:00
2022-12-09 17:35:40 +01:00
2021-07-07 11:30:35 +02:00
2018-02-13 14:26:19 +00:00
2022-06-02 21:21:10 +02:00
2020-07-30 16:38:04 -05:00
2022-06-22 23:33:15 +02:00
2022-03-11 10:00:19 -05:00
2022-12-13 00:50:43 +01:00
2022-01-19 14:24:14 +01:00
2006-07-21 13:21:43 +00:00
2022-12-12 16:55:42 +01:00
2021-01-21 11:02:09 +01:00
2020-07-30 16:38:04 -05:00
2022-06-22 23:33:15 +02:00
2018-01-16 19:23:18 +01:00
2021-10-15 16:58:21 +02:00
2018-01-16 19:23:18 +01:00
2018-02-25 16:40:05 -06:00
2016-04-11 16:20:15 +02:00
2021-12-07 21:45:09 +01:00
2007-08-13 13:15:02 +00:00
2022-01-26 14:15:03 +01:00
2012-12-04 14:47:50 +01:00
2021-04-09 23:13:08 +02:00