system.nixpkgs: fix

This commit is contained in:
陈浩南 2024-07-31 12:55:06 +08:00
parent 12e6b1e42e
commit bb5d5229a5

View File

@ -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;