helpers: add mkNullOrStr

This commit is contained in:
Gaetan Lepage 2024-01-06 18:26:34 +01:00 committed by Gaétan Lepage
parent ed02648368
commit a40a0c679c

View file

@ -79,6 +79,8 @@ with lib; rec {
mkCompositeOption = desc: options:
mkNullOrOption (types.submodule {inherit options;}) desc;
mkNullOrStr = mkNullOrOption (with nixvimTypes; maybeRaw str);
mkNullOrLua = desc:
lib.mkOption {
type = lib.types.nullOr nixvimTypes.strLua;