nixos/nixpkgs.config: use mkDefault for _module.args.docPrefix

This commit is contained in:
Johannes Kirschbauer
2026-05-04 10:05:11 +02:00
committed by jopejoe1
parent 1d1e96211e
commit f18d5e3936
+2 -1
View File
@@ -9,7 +9,7 @@
{
config,
lib,
docPrefix ? "",
docPrefix,
...
}:
@@ -515,6 +515,7 @@ in
inherit options;
config = {
_module.args.docPrefix = lib.mkDefault "";
warnings =
optionals config.warnUndeclaredOptions (
mapAttrsToList (k: v: "undeclared Nixpkgs option set: config.${k}") config._undeclared or { }