diff --git a/src/libutil/util.hh b/src/libutil/util.hh index 5adabae28..914d6cce0 100644 --- a/src/libutil/util.hh +++ b/src/libutil/util.hh @@ -240,11 +240,15 @@ std::optional getSelfExe(); /** * @return $XDG_STATE_HOME or $HOME/.local/state. + * + * @note Not to be confused with settings.nixStateDir. */ Path getStateDir(); /** - * Create the Nix state directory and return the path to it. + * Create $XDG_STATE_HOME/nix or $HOME/.local/state/nix, and return + * the path to it. + * @note Not to be confused with settings.nixStateDir. */ Path createNixStateDir();