more restrictive unfree packages

This commit is contained in:
Robin Appelman 2024-01-06 20:45:02 +01:00
commit 57d6c7f349

View file

@ -10,10 +10,13 @@
utils,
}:
utils.lib.eachDefaultSystem (system: let
inherit (nixpkgs.lib) getName;
inherit (builtins) elem;
pkgs = (import nixpkgs) {
inherit system;
# nrf5-sdk is unfree
config.allowUnfree = true;
config.allowUnfreePredicate = pkg: elem (getName pkg) [
"nrf5-sdk"
];
};
in rec {
packages = {