config.nix: document packageOverrides and perlPackageOverrides

These are handled in the NixOS modules for `nixpkgs.config` as special merges; add them here.
This commit is contained in:
jopejoe1
2026-04-23 12:34:01 +02:00
committed by Johannes Kirschbauer
parent 0d0687e63e
commit cbcbede8e0
+16
View File
@@ -471,6 +471,22 @@ let
'';
};
packageOverrides = mkOption {
type = types.functionTo types.attrs;
default = pkgs: { };
description = ''
A function to replace or add packages in `pkgs` expects an attrset to be returned when called.
'';
};
perlPackageOverrides = mkOption {
type = types.functionTo types.attrs;
default = pkgs: { };
description = ''
The same as `packageOverrides` but for packages in the perl package set.
'';
};
problems = (import ../stdenv/generic/problems.nix { inherit lib; }).configOptions;
};