mirror of
https://github.com/nix-community/home-manager.git
synced 2026-10-30 16:10:45 +00:00
Warn when session-variable definitions may change if applied more than once. Apply the check to home and Zsh session variables without changing their generated output. Detect direct references after caller-specific rendering while excluding stable whole-value expansions. Attribute each warning to the surviving per-attribute definitions, including their module priorities and wrappers. This gives users advance notice before later work allows the session configuration to be applied in new shells. Recommend search-variable options for path-like values and complete assignments for other values. Tests cover detector boundaries, Zsh escaping, source attribution, and both module call sites.