diff --git a/devenv/src/flake.tmpl.nix b/devenv/src/flake.tmpl.nix index 3da44bc29..cba4effd7 100644 --- a/devenv/src/flake.tmpl.nix +++ b/devenv/src/flake.tmpl.nix @@ -88,6 +88,7 @@ options = pkgs.nixosOptionsDoc { options = builtins.removeAttrs project.options [ "_module" ]; + warningsAreErrors = false; # Unpack Nix types, e.g. literalExpression, mDoc. transformOptions = let isDocType = v: builtins.elem v [ "literalDocBook" "literalExpression" "literalMD" "mdDoc" ]; diff --git a/flake.nix b/flake.nix index 881643c02..7df94906b 100644 --- a/flake.nix +++ b/flake.nix @@ -66,9 +66,6 @@ { name = url; url = url; }; options = pkgs.nixosOptionsDoc { options = builtins.removeAttrs eval.options [ "_module" ]; - - warningsAreErrors = false; - transformOptions = opt: ( opt // { declarations = map rewriteSource opt.declarations; } );