nix-community / home-manager

Manage a user environment using Nix [maintainer=@rycee]
https://nix-community.github.io/home-manager/
MIT License
7.14k stars 1.85k forks source link

zsh: improve dotDir handling #6089

Open kjkent opened 1 week ago

kjkent commented 1 week ago

Description

Previously, config.programs.zsh.dotDir prepended strings with $HOME. This caused issues where $HOME is inconsistently resolved in time for the evaluation of the option. The handling of this variable is also inconsistent with how paths are handled elsewhere, including within the same module, where config.programs.zsh.history.path does not mutate the supplied string.

This change prepends config.home.homeDirectory to relative paths, while assigning absolute paths unchanged. Tests for both cases are added.

Closes #5100

Checklist

Maintainer CC