2023-01-13 19:19:41 +00:00
|
|
|
{ config, lib, ... }:
|
|
|
|
|
2023-06-16 18:11:55 +00:00
|
|
|
let
|
|
|
|
inherit (lib) getName mkOption;
|
|
|
|
inherit (lib.types) listOf str;
|
|
|
|
in
|
2023-01-13 19:19:41 +00:00
|
|
|
{
|
|
|
|
# Pending https://github.com/NixOS/nixpkgs/issues/55674
|
2023-06-16 18:11:55 +00:00
|
|
|
options.allowedUnfree = mkOption { type = listOf str; default = [ ]; };
|
|
|
|
config.nixpkgs.config.allowUnfreePredicate = p: builtins.elem (getName p) config.allowedUnfree;
|
2023-01-13 19:19:41 +00:00
|
|
|
}
|