joypixels: Narrow unfree recommendation

JoyPixels requires explicit consent to the license and since the license
is unfree NixPkgs has to be configured to allow the package. This
updates the recommendation from setting allowUnfreePackages to adding
just JoyPixels to the allowUnfreePredicate.
This commit is contained in:
toonn 2024-04-22 13:16:01 +02:00
parent 09426fe871
commit 74e591dc46
No known key found for this signature in database
GPG Key ID: 89EECD463032D959

View File

@ -43,11 +43,16 @@ let
unfree licenses.
configuration.nix:
nixpkgs.config.allowUnfree = true;
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"joypixels"
];
nixpkgs.config.joypixels.acceptLicense = true;
config.nix:
allowUnfree = true;
allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"joypixels"
];
joypixels.acceptLicense = true;
[1]: ${joypixels-free-license.url}