framework: unfree predicate module
lf => yazy add grayjay
This commit is contained in:
parent
9e40da0a9c
commit
2219fb8619
10 changed files with 49 additions and 34 deletions
16
nixos/modules/predicate.nix
Normal file
16
nixos/modules/predicate.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue