cachyos kernel
Some checks failed
Build and Deploy / deploy (push) Failing after 2h24m5s

This commit is contained in:
2026-04-13 22:58:29 -04:00
parent ca4e0d42b3
commit abb762604d
5 changed files with 141 additions and 2 deletions

View File

@@ -18,6 +18,22 @@
inputs.jovian-nixos.nixosModules.default
];
# cachyos kernel: bore scheduler, full lto, zen 3 (5800x)
boot.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";
structuredExtraConfig = with lib.kernel; {
# x86_64-v3 is the ISA level; pin to zen 3 for microarch tuning
GENERIC_CPU = lib.mkForce no;
MZEN3 = lib.mkForce yes;
};
};
in
helpers.kernelModuleLLVMOverride (pkgs.linuxKernel.packagesFor kernel);
fileSystems."/media/games" = {
device = "/dev/disk/by-uuid/1878136e-765d-4784-b204-3536ab4fdac8";
fsType = "f2fs";