Merge pull request #305767 from emilylange/nixos-manual-abort-on-warn

nixos/manual: apply `documentation.nixos.options.warningsAreErrors` to nix eval as well
This commit is contained in:
pennae
2024-04-21 18:56:54 +02:00
committed by GitHub
+1
View File
@@ -101,6 +101,7 @@ let
libPath = filter (pkgs.path + "/lib");
pkgsLibPath = filter (pkgs.path + "/pkgs/pkgs-lib");
nixosPath = filter (pkgs.path + "/nixos");
NIX_ABORT_ON_WARN = warningsAreErrors;
modules =
"[ "
+ concatMapStringsSep " " (p: ''"${removePrefix "${modulesPath}/" (toString p)}"'') docModules.lazy