From 46456a929b654ed2ac9c56f8a0c1fa1823a4a2a9 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Sat, 13 Apr 2024 15:03:46 +0200 Subject: [PATCH] lib: remove all uses of lib.mdDoc this change is otherwise a no-op, as lib.mdDoc is already defined to be the identity function. --- lib/default.nix | 2 +- lib/modules.nix | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/default.nix b/lib/default.nix index 21e4bab2b942..c77ce88cc440 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -146,7 +146,7 @@ let scrubOptionValue literalExpression literalExample showOption showOptionWithDefLocs showFiles unknownModule mkOption mkPackageOption mkPackageOptionMD - mdDoc literalMD; + literalMD; inherit (self.types) isType setType defaultTypeMerge defaultFunctor isOptionType mkOptionType; inherit (self.asserts) diff --git a/lib/modules.nix b/lib/modules.nix index 17bc1f1d7664..79892f50c4fe 100644 --- a/lib/modules.nix +++ b/lib/modules.nix @@ -136,7 +136,7 @@ let # TODO: Change the type of this option to a submodule with a # freeformType, so that individual arguments can be documented # separately - description = lib.mdDoc '' + description = '' Additional arguments passed to each module in addition to ones like `lib`, `config`, and `pkgs`, `modulesPath`. @@ -187,14 +187,14 @@ let type = types.bool; internal = true; default = true; - description = lib.mdDoc "Whether to check whether all option definitions have matching declarations."; + description = "Whether to check whether all option definitions have matching declarations."; }; _module.freeformType = mkOption { type = types.nullOr types.optionType; internal = true; default = null; - description = lib.mdDoc '' + description = '' If set, merge all definitions that don't have an associated option together using this type. The result then gets combined with the values of all declared options to produce the final ` @@ -209,7 +209,7 @@ let _module.specialArgs = mkOption { readOnly = true; internal = true; - description = lib.mdDoc '' + description = '' Externally provided module arguments that can't be modified from within a configuration, but can be used in module imports. '';