docs: don't set allowUnfree

We shouldn't be evaluating any packages, so we shouldn't need
`allowUnfree`.
This commit is contained in:
Matt Sturgeon 2025-01-24 20:49:25 +00:00
parent 796ace65f7
commit 0b4a4e8327
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299

View file

@ -3,14 +3,6 @@
nixpkgs,
}:
let
# FIXME:
# Building the docs evaluates many package-option defaults, some of which are unfree.
# This usually happens when we include the package option value in another option's default without
# using a literalExpression defaultText.
config = {
allowUnfree = true;
};
# Extend nixpkg's lib, so that we can handle recursive leaf types such as `either`
libOverlay = final: prev: {
types = prev.types // {
@ -46,6 +38,6 @@ let
in
import nixpkgs {
inherit config system;
inherit system;
overlays = [ overlay ];
}