nixos/nixpkgs: remove unused binding

figsoda fd4f8656 ca6c2c21

Changed files
+2 -7
nixos
modules
+2 -7
nixos/modules/misc/nixpkgs.nix
···
optionalAttrs (lhs ? packageOverrides) {
packageOverrides = pkgs:
optCall lhs.packageOverrides pkgs //
-
optCall (attrByPath ["packageOverrides"] ({}) rhs) pkgs;
+
optCall (attrByPath [ "packageOverrides" ] { } rhs) pkgs;
} //
optionalAttrs (lhs ? perlPackageOverrides) {
perlPackageOverrides = pkgs:
optCall lhs.perlPackageOverrides pkgs //
-
optCall (attrByPath ["perlPackageOverrides"] ({}) rhs) pkgs;
+
optCall (attrByPath [ "perlPackageOverrides" ] { } rhs) pkgs;
};
configType = mkOptionType {
···
# Context for messages
hostPlatformLine = optionalString hasHostPlatform "${showOptionWithDefLocs opt.hostPlatform}";
buildPlatformLine = optionalString hasBuildPlatform "${showOptionWithDefLocs opt.buildPlatform}";
-
platformLines = optionalString hasPlatform ''
-
Your system configuration configures nixpkgs with platform parameters:
-
${hostPlatformLine
-
}${buildPlatformLine
-
}'';
legacyOptionsDefined =
optional (opt.localSystem.highestPrio < (mkDefault {}).priority) opt.system