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
commit 67dfd15302
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

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