From 3fde6a4bf348cd7178f1b31379c2dc6bcad2d28d Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Mon, 6 Nov 2023 12:39:54 +0300 Subject: [PATCH] modules/core: inherit literalExpression from lib --- modules/core/default.nix | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/modules/core/default.nix b/modules/core/default.nix index 3b296f0..b0b9d80 100644 --- a/modules/core/default.nix +++ b/modules/core/default.nix @@ -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 [ - { - 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 {