diff options
author | pennae <82953136+pennae@users.noreply.github.com> | 2024-04-21 18:56:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-21 18:56:54 +0200 |
commit | 67dfd1530243f6aaaad22f74651f6a3f098f61d6 (patch) | |
tree | bd3b6ce6411eda51340e8256639e917093735691 | |
parent | 7a85b7bc3513e9e3ff56178f47b0d9471939434f (diff) | |
parent | 2872e103333eb910cf015c36dbab5911f3630f95 (diff) |
Merge pull request #305767 from emilylange/nixos-manual-abort-on-warn
nixos/manual: apply `documentation.nixos.options.warningsAreErrors` to nix eval as well
-rw-r--r-- | nixos/modules/misc/documentation.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/misc/documentation.nix b/nixos/modules/misc/documentation.nix index 2a25f8e564684..26323e14b9017 100644 --- a/nixos/modules/misc/documentation.nix +++ b/nixos/modules/misc/documentation.nix @@ -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 |