modules/core: inherit literalExpression from lib

This commit is contained in:
raf 2023-11-06 12:39:54 +03:00
parent c1f449137f
commit 3fde6a4bf3
No known key found for this signature in database
GPG key ID: 02D1DD3FA08B6B29

View file

@ -4,7 +4,7 @@
...
}:
with builtins; let
inherit (lib) mkOption types mapAttrsFlatten filterAttrs optionalString getAttrs;
inherit (lib) mkOption types mapAttrsFlatten filterAttrs optionalString getAttrs literalExpression;
inherit (lib) nvim;
inherit (nvim.lua) toLuaObject;
@ -125,12 +125,14 @@ in {
type = with types; listOf unspecified;
internal = true;
default = [];
example = lib.literalExpression [
example = literalExpression ''
[
{
assertion = false;
message = "you can't enable this for that reason";
}
];
]
'';
};
warnings = mkOption {