From ee49ee29a1fc37f7cc0de65cb5e884a3e090f528 Mon Sep 17 00:00:00 2001 From: phucleeuwu <125681538+phucleeuwu@users.noreply.github.com> Date: Sat, 31 May 2025 19:26:16 +0700 Subject: [PATCH] =?UTF-8?q?yazi:=20change=20the=20default=20`shellWrapperN?= =?UTF-8?q?ame`=20`yy`=20=E2=86=92`=20y`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Austin Horstman --- modules/programs/yazi.nix | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/modules/programs/yazi.nix b/modules/programs/yazi.nix index 0fcf0247..9aaa445a 100644 --- a/modules/programs/yazi.nix +++ b/modules/programs/yazi.nix @@ -48,8 +48,23 @@ in shellWrapperName = lib.mkOption { type = types.str; - default = "yy"; - example = "y"; + default = + 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 = '' Name of the shell wrapper to be called. '';