From d2e0458d6531885600b346e161c38790dc356fa8 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Sat, 27 Dec 2025 18:27:08 -0600 Subject: [PATCH] zsh: don't suggest stateVersion update Generally best to avoid telling normal users to adjust their stateVersion to avoid other home-manager module logic changes based on stateVersion. Signed-off-by: Austin Horstman --- modules/programs/zsh/default.nix | 2 +- tests/modules/programs/zsh/legacy-warning.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/programs/zsh/default.nix b/modules/programs/zsh/default.nix index cd1e23a4d..cf7e14858 100644 --- a/modules/programs/zsh/default.nix +++ b/modules/programs/zsh/default.nix @@ -415,7 +415,7 @@ in You are currently using the legacy default (home directory) because `home.stateVersion` is less than "26.05". To silence this warning and lock in the current behavior, set: programs.zsh.dotDir = config.home.homeDirectory; - To adopt the new behavior (XDG config directory), update `home.stateVersion` to "26.05" or set: + To adopt the new behavior (XDG config directory), set: programs.zsh.dotDir = "''${config.xdg.configHome}/zsh"; '' ]; diff --git a/tests/modules/programs/zsh/legacy-warning.nix b/tests/modules/programs/zsh/legacy-warning.nix index 35aa15ea4..b285ae3ac 100644 --- a/tests/modules/programs/zsh/legacy-warning.nix +++ b/tests/modules/programs/zsh/legacy-warning.nix @@ -21,7 +21,7 @@ You are currently using the legacy default (home directory) because `home.stateVersion` is less than "26.05". To silence this warning and lock in the current behavior, set: programs.zsh.dotDir = config.home.homeDirectory; - To adopt the new behavior (XDG config directory), update `home.stateVersion` to "26.05" or set: + To adopt the new behavior (XDG config directory), set: programs.zsh.dotDir = "''${config.xdg.configHome}/zsh"; '' ];