diff --git a/modules/system/default.nix b/modules/system/default.nix index 32bb2d5f..626331bd 100644 --- a/modules/system/default.nix +++ b/modules/system/default.nix @@ -167,6 +167,12 @@ inputs: { hostPlatform = { system = "x86_64-linux"; gcc = { arch = system.march; tune = system.march; }; }; config.qchem-config.optArch = system.march; + overlays = + let + fixes.alderlake = [(final: prev: + { embree = prev.embree.override { stdenv = final.genericPackages.stdenv; }; })]; + in + fixes.${system.march} or []; }; nix.settings.system-features = [ "gccarch-${system.march}" ]; boot.kernelPatches =