From bb5d5229a5b98c18529e55a2f8c4eacfb9107728 Mon Sep 17 00:00:00 2001 From: chn Date: Wed, 31 Jul 2024 12:55:06 +0800 Subject: [PATCH] system.nixpkgs: fix --- modules/system/nixpkgs.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/system/nixpkgs.nix b/modules/system/nixpkgs.nix index a6621998..16d79ee3 100644 --- a/modules/system/nixpkgs.nix +++ b/modules/system/nixpkgs.nix @@ -123,7 +123,7 @@ inputs: }; programs.ccache = { enable = true; cacheDir = "/var/lib/ccache"; }; nix.settings.extra-sandbox-paths = [ inputs.config.programs.ccache.cacheDir ]; - boot.kernelPatches = mkIf (nixpkgs.march != null) + boot.kernelPatches = mkIf (nixpkgs.march != null && inputs.config.nixos.system.kernel.variant != "steamos") [{ name = "native kernel"; patch = null;