From 1fb1446380810946d746a45e5d936b5bdbca3a46 Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Thu, 8 May 2025 15:32:43 +0100 Subject: [PATCH] =?UTF-8?q?lib.modules.importApply:=20Fix=20doc=20typo;=20?= =?UTF-8?q?`=5Fkey`=20=E2=86=92=20`key`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `importApply` docs reference using the `_key` attr along with `importApply` or `_file`, however the actual attr name used by the module system is `key`. --- lib/modules.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/modules.nix b/lib/modules.nix index 290b9ce0b698..d6061ec6d039 100644 --- a/lib/modules.nix +++ b/lib/modules.nix @@ -1881,7 +1881,7 @@ let This function does not add support for deduplication and `disabledModules`, although that could be achieved by wrapping the returned module and setting - the `_key` module attribute. + the `key` module attribute. The reason for this omission is that the file path is not guaranteed to be a unique identifier for the module, as two instances of the module may reference different `arg`s in their closures.