mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
12 lines
267 B
Nix
12 lines
267 B
Nix
{ lib, config }:
|
|
{
|
|
options.local.allowedUnfree = lib.mkOption {
|
|
type = lib.types.listOf lib.types.str;
|
|
default = [ ];
|
|
};
|
|
|
|
config = {
|
|
nixpkgs.config.allowUnfreePredicate =
|
|
pkg: builtins.elem (lib.getName pkg) config.local.allowedUnfree;
|
|
};
|
|
}
|