modules.system.nixpkgs: fix native kernel patch

This commit is contained in:
2025-08-07 23:15:32 +08:00
parent 1ce1582bf9
commit 03b5a4bfd6

View File

@@ -17,7 +17,8 @@ inputs:
{ {
nixpkgs = inputs.localLib.buildNixpkgsConfig nixpkgs = inputs.localLib.buildNixpkgsConfig
{ inherit inputs; nixpkgs = nixpkgs // { nixRoot = null; nixos = true; }; }; { inherit inputs; nixpkgs = nixpkgs // { nixRoot = null; nixos = true; }; };
boot.kernelPatches = inputs.lib.mkIf (nixpkgs.march != null) boot.kernelPatches = inputs.lib.mkIf
(nixpkgs.march != null && inputs.config.nixos.system.kernel.variant != "steamos")
[{ [{
name = "native kernel"; name = "native kernel";
patch = null; patch = null;