linux: forward features into passthru (#535309)

This commit is contained in:
K900
2026-06-25 15:40:51 +00:00
committed by GitHub
+4 -2
View File
@@ -92,8 +92,7 @@ lib.makeOverridable (
# Whether to utilize the controversial import-from-derivation feature to parse the config
allowImportFromDerivation ? false,
# ignored
features ? null,
features ? { },
lib ? lib_,
stdenv ? stdenv_,
}:
@@ -514,6 +513,9 @@ lib.makeOverridable (
inherit
isZen
withRust
# Forwarded into passthru so features survive kernel.override() call chains
# used by the NixOS module system (see boot.kernelPackages apply in kernel.nix).
features
;
baseVersion = lib.head (lib.splitString "-rc" version);
kernelOlder = lib.versionOlder baseVersion;