From e5d4c2235f08ca8bfa4aada4ad51b0ac4f212608 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Thu, 4 Nov 2021 11:41:29 +0100 Subject: [PATCH] docs: Correct fallback user config path This is in line with XDG Base Directory Specification, where ~/.config is supposed to be used when XDG_CONFIG_HOME is unset. It also better matches the reality, where ~/.config/nix.conf does not seem to be used. --- doc/manual/src/command-ref/conf-file-prefix.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/manual/src/command-ref/conf-file-prefix.md b/doc/manual/src/command-ref/conf-file-prefix.md index 3140170ab..d660db502 100644 --- a/doc/manual/src/command-ref/conf-file-prefix.md +++ b/doc/manual/src/command-ref/conf-file-prefix.md @@ -17,7 +17,7 @@ By default Nix reads settings from the following places: Otherwise it will look for `nix/nix.conf` files in `XDG_CONFIG_DIRS` and `XDG_CONFIG_HOME`. If these are unset, it will look in - `$HOME/.config/nix.conf`. + `$HOME/.config/nix/nix.conf`. - If `NIX_CONFIG` is set, its contents is treated as the contents of a configuration file.