-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
hardware: add enableRedistributalFirmware #25636
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
assertion = !cfg.enableAllFirmware || (config.nixpkgs.config.allowUnfree or false); | ||
message = '' | ||
the list of hardware.enableAllFirmware contains non-redistributable licensed firmware files. | ||
This requires nixpkgs.config.allowUnfree to be true. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This indentation is intentional for nice multi-line bullet points.
''; | ||
}; | ||
|
||
hardware.enableAllRedistributalFirmware = mkOption { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’d change the name to RedistributableFirmware
.
default = false; | ||
type = types.bool; | ||
description = '' | ||
Turn on this option if you want to enable all the firmware with a license allowing redistribution. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
… (i.e. free firmware and <literal>firmware-linux-nonfree</literal>)
Due the recent inclusion of broadcom-bt-firmware in enableAllFirmware, it was required to set `nixpkgs.config.allowUnfree` to obtain the full list. To make this dependency more explicit an assertion is added and an alternative option `enableRedistributalFirmware` is provided to only obtain firmware with an license allowing redistribution.
Minor gripe: Spelling I think you meant Redistributable not Redistributal (which AFAICT is not a word) |
fixed in e697585. |
Well, that was one of my two comments, which apparently went unnoticed. :) |
Motivation for this change
Due the recent inclusion of broadcom-bt-firmware in enableAllFirmware,
it was required to set
nixpkgs.config.allowUnfree
to obtain the fulllist. To make this dependency more explicit an assertion is added and an
alternative option
enableRedistributalFirmware
is provided to onlyobtain firmware with an license allowing redistribution.
see #25567 for previous discussion.
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)