12 lines
262 B
Nix
12 lines
262 B
Nix
{ lib, config, ... }:
|
|
|
|
{
|
|
options.nixpkgs.allowedUnfree = lib.mkOption {
|
|
type = lib.types.listOf lib.types.str;
|
|
default = [ ];
|
|
};
|
|
|
|
config.nixpkgs.config.allowUnfreePredicate =
|
|
pkg: builtins.elem (lib.getName pkg) config.nixpkgs.allowedUnfree;
|
|
}
|