diff --git a/modules/home-environment.nix b/modules/home-environment.nix index abfc3e7ee..b3e904e5b 100644 --- a/modules/home-environment.nix +++ b/modules/home-environment.nix @@ -274,11 +274,21 @@ in type = with types; listOf str; default = [ ]; example = [ - ".git/safe/../../bin" + "$HOME/.local/bin" "\${xdg.configHome}/emacs/bin" - "~/.local/bin" + ".git/safe/../../bin" ]; - description = "Extra directories to add to PATH."; + description = '' + Extra directories to add to PATH. + + + + These directories are added to the PATH variable in a + double-quoted context, so expressions like $HOME are + expanded by the shell. However, since expressions like ~ or + * are escaped, they will end up in the PATH + verbatim. + ''; }; home.sessionVariablesExtra = mkOption {