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.