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"; '' ];