2.home-manager/tests/lib/types
Austin Horstman 95496df8c0 lib/deprecations: add state version default helper
Add a helper for options whose defaults change across home.stateVersion boundaries. This centralizes the warning text and documentation shape so modules do not need to hand-roll the same migration pattern at each call site.

The helper takes legacy and current branches with a runtime value plus optional static documentation text. That keeps the actual default version-gated while avoiding option docs that depend on evaluated config. Add a focused test covering the legacy warning path, the new-value path, and an explicit legacy pin that should not warn.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2026-03-22 11:46:51 -05:00
..
dag-merge-result.txt lib: add functions to create DAGs from lists 2023-06-05 23:08:30 +02:00
dag-merge.nix treewide: remove unused code (#6985) 2025-05-07 10:03:21 -05:00
dag-submodule.nix treewide: reformat nixfmt-rfc-style 2025-04-08 08:50:05 -07:00
default.nix lib/deprecations: add state version default helper 2026-03-22 11:46:51 -05:00
either-suboptions-docs-lib.nix tests/types: add suboptions doc test 2026-02-13 13:41:08 -06:00
gvariant-merge.nix treewide: reformat nixfmt-rfc-style 2025-04-08 08:50:05 -07:00
state-version-option-default.nix lib/deprecations: add state version default helper 2026-03-22 11:46:51 -05:00