2026-02-02 18:59:35 -05:00
|
|
|
{
|
|
|
|
|
config,
|
|
|
|
|
lib,
|
|
|
|
|
foo,
|
|
|
|
|
...
|
|
|
|
|
}:
|
2025-02-13 18:40:35 -05:00
|
|
|
|
|
|
|
|
let
|
|
|
|
|
inherit (builtins) elem;
|
|
|
|
|
inherit (lib) getName mkOption;
|
|
|
|
|
inherit (lib.types) listOf str;
|
|
|
|
|
in
|
|
|
|
|
{
|
|
|
|
|
# Pending https://github.com/NixOS/nixpkgs/issues/55674
|
|
|
|
|
options.allowedUnfree = mkOption {
|
|
|
|
|
type = listOf str;
|
|
|
|
|
default = [ ];
|
|
|
|
|
};
|
2026-02-02 18:59:35 -05:00
|
|
|
# config.nixpkgs.config.allowUnfreePredicate = p: elem (getName p) config.allowedUnfree;
|
2025-02-13 18:40:35 -05:00
|
|
|
}
|