Skip to content

Commit e5d4c22

Browse files
authored
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.
1 parent c5fd0b4 commit e5d4c22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/manual/src/command-ref/conf-file-prefix.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ By default Nix reads settings from the following places:
1717

1818
Otherwise it will look for `nix/nix.conf` files in `XDG_CONFIG_DIRS`
1919
and `XDG_CONFIG_HOME`. If these are unset, it will look in
20-
`$HOME/.config/nix.conf`.
20+
`$HOME/.config/nix/nix.conf`.
2121

2222
- If `NIX_CONFIG` is set, its contents is treated as the contents of
2323
a configuration file.

0 commit comments

Comments
 (0)