From 6bb5f9f0bc2573f059dc13708fa7695a7db63b40 Mon Sep 17 00:00:00 2001 From: chn Date: Sun, 12 Oct 2025 09:55:42 +0800 Subject: [PATCH] modules.system.nixpkgs: remove native kernel patch --- modules/system/nixpkgs.nix | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/modules/system/nixpkgs.nix b/modules/system/nixpkgs.nix index aa547672..e42d3516 100644 --- a/modules/system/nixpkgs.nix +++ b/modules/system/nixpkgs.nix @@ -21,17 +21,5 @@ inputs: inherit inputs; nixpkgs = nixpkgs // { nixos = true; inherit (inputs.config.nixos.model) arch; }; }; - boot.kernelPatches = inputs.lib.mkIf (nixpkgs.march != null) - [{ - name = "native kernel"; - patch = null; - structuredExtraConfig = - let kernelConfig = { znver2 = "MZEN2"; znver3 = "MZEN3"; znver4 = "MZEN4"; znver5 = "MZEN5"; }; - in - { - GENERIC_CPU = inputs.lib.kernel.no; - ${kernelConfig.${nixpkgs.march} or "M${inputs.lib.toUpper nixpkgs.march}"} = inputs.lib.kernel.yes; - }; - }]; }; }