yazi: change the default shellWrapperName yy y

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
phucleeuwu 2025-05-31 19:26:16 +07:00 committed by Austin Horstman
parent ff5e5d882c
commit ee49ee29a1

View file

@ -48,8 +48,23 @@ in
shellWrapperName = lib.mkOption { shellWrapperName = lib.mkOption {
type = types.str; type = types.str;
default = "yy"; default =
example = "y"; if lib.versionAtLeast config.home.stateVersion "26.05" then
"y"
else
lib.warn ''
The default value of `programs.yazi.shellWrapperName` has changed from `yy` to `y`.
You are currently using the legacy default (`yy`) because `home.stateVersion` is less than "26.05".
To silence this warning and keep legacy behavior, set:
programs.yazi.shellWrapperName = "yy";
To adopt the new default behavior, set:
programs.yazi.shellWrapperName = "y";
'' "yy";
defaultText = literalExpression ''
"y" for state version 26.05
"yy" for state version < 26.05
'';
example = "yy";
description = '' description = ''
Name of the shell wrapper to be called. Name of the shell wrapper to be called.
''; '';