framework: unfree predicate module

lf => yazy
add grayjay
This commit is contained in:
Tristan 2025-08-26 13:35:00 +01:00
parent 9e40da0a9c
commit 2219fb8619
10 changed files with 49 additions and 34 deletions

View file

@ -0,0 +1,16 @@
{
lib,
config,
...
}: {
options = {
allowUnfreePkgNames = lib.mkOption {
type = lib.types.listOf lib.types.str;
};
};
config = {
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) config.allowUnfreePkgNames;
};
}