This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
{ 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;
|
||||
}
|
||||
Reference in New Issue
Block a user