zsh: make the package option nullable

This commit is contained in:
awa2333
2026-08-23 11:41:15 +08:00
committed by Matthieu Coudron
parent b48c26361a
commit fb4e41e486

View File

@@ -602,7 +602,11 @@ in
fpath+=($profile/share/zsh/site-functions $profile/share/zsh/$ZSH_VERSION/functions $profile/share/zsh/vendor-completions)
done
'')
(lib.mkIf (cfg.package != null) (mkOrder 520 "HELPDIR=${cfg.package}/share/zsh/$ZSH_VERSION/help"))
(lib.mkIf (cfg.package != null) (
mkOrder 520 ''
HELPDIR="${cfg.package}/share/zsh/$ZSH_VERSION/help"
''
))
(lib.mkIf (cfg.defaultKeymap != null) (
mkOrder 530 ''