kernel: compile for x86_64-v3 (common target)
Some checks failed
Build / build (push) Failing after 12s

This commit is contained in:
2026-04-15 17:33:21 -04:00
parent da1bfbb778
commit 7ab17f132e
3 changed files with 11 additions and 27 deletions

View File

@@ -100,6 +100,17 @@
# kernel options
boot = {
# cachyos kernel: bore scheduler, full lto, x86_64-v3 (common to zen 3 + zen 5)
kernelPackages =
let
helpers = pkgs.callPackage "${inputs.nix-cachyos-kernel}/helpers.nix" { };
kernel = pkgs.cachyosKernels.linux-cachyos-bore-lto.override {
lto = "full";
processorOpt = "x86_64-v3";
};
in
helpers.kernelModuleLLVMOverride (pkgs.linuxKernel.packagesFor kernel);
# disable legacy subsystems neither host will ever use
kernelPatches = [
{