-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
Open
Labels
0.kind: enhancementAdd something new or improve an existing system.Add something new or improve an existing system.6.topic: architectureRelating to code and API architecture of NixpkgsRelating to code and API architecture of Nixpkgs
Description
nixpkgs.config is not subject to the normal merging lib.mkMerge semantic.
{
imports = [
{ nixpkgs.config.allowUnfreePredicate = x: false; }
{ nixpkgs.config.allowUnfreePredicate = x: true; }
];
}The snippet above would evaluate to nixpkgs.config.allowUnfreePredicate = false instead of saying the option has been defined multiple times.
Furthermore I would like to see this option being merged with lib.types.functionTo lib.types.boolByOr, so we merge these definitions point-wise returning true on any predicate satisfied.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
0.kind: enhancementAdd something new or improve an existing system.Add something new or improve an existing system.6.topic: architectureRelating to code and API architecture of NixpkgsRelating to code and API architecture of Nixpkgs