From a40a0c679c814841af8ddf3a09f02e218942533f Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sat, 6 Jan 2024 18:26:34 +0100 Subject: [PATCH] helpers: add mkNullOrStr --- lib/helpers.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/helpers.nix b/lib/helpers.nix index 5bd83aea..3962c1e8 100644 --- a/lib/helpers.nix +++ b/lib/helpers.nix @@ -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;