Skip to content

Commit

Permalink
modules/core: inherit literalExpression from lib
Browse files Browse the repository at this point in the history
  • Loading branch information
NotAShelf committed Nov 6, 2023
1 parent c1f4491 commit 3fde6a4
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions modules/core/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -125,12 +125,14 @@ in {
type = with types; listOf unspecified;
internal = true;
default = [];
example = lib.literalExpression [
{
assertion = false;
message = "you can't enable this for that reason";
}
];
example = literalExpression ''
[
{
assertion = false;
message = "you can't enable this for that reason";
}
]
'';
};

warnings = mkOption {
Expand Down

0 comments on commit 3fde6a4

Please sign in to comment.