2.home-manager/modules/lib
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
..
assertions.nix treewide: reformat nixfmt-rfc-style 2025-04-08 08:50:05 -07:00
booleans.nix treewide: reformat nixfmt-rfc-style 2025-04-08 08:50:05 -07:00
dag.nix treewide: remove unused code (#6985) 2025-05-07 10:03:21 -05:00
darwin.nix lib.darwin: simplify assertInterval 2026-01-08 14:29:57 +01:00
default.nix services.nix-gc: extract darwin agent interval code to new library file 2025-05-15 13:07:13 -05:00
deprecations.nix lib/deprecations: add state version default helper 2026-03-22 11:46:51 -05:00
file-type.nix treewide: fix spelling errors 2026-03-11 22:32:16 -05:00
generators.nix lib.generators.toKDL: fix _children not being applied on root level 2026-01-12 20:38:42 -06:00
gvariant.nix treewide: reformat nixfmt-rfc-style 2025-04-08 08:50:05 -07:00
maintainers.nix maintainers: drop duplicated mikaeladev from HM 2026-03-03 14:24:37 -06:00
nushell.nix nushell: throw instead of abort (#6870) 2025-05-02 08:45:16 -05:00
shell.nix lib: remove rec in shell.nix 2026-03-21 18:23:54 -05:00
stdlib-extended.nix lib: extend lib to include hm maintainers 2026-03-19 15:16:56 -05:00
strings.nix treewide: format with latest stable formatter 2025-07-23 10:27:52 -05:00
types-dag.nix treewide: remove unused code (#6985) 2025-05-07 10:03:21 -05:00
types.nix types: add SCFGDirectives type 2025-10-20 17:10:44 +02:00
zsh.nix lib/zsh: revert escapeShellArg in toZshValue 2025-09-28 14:44:14 -05:00