lol
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
}@args: # 3. Rename this capture from 'inputs' to 'args' to avoid variable name collision
|
||||
|
||||
let
|
||||
inherit (stdenv) isx86_64 isLinux;
|
||||
inherit (stdenv) isx86_64 isAarch64 isLinux;
|
||||
inherit (lib.trivial) importJSON;
|
||||
|
||||
# CachyOS repeating stuff.
|
||||
@@ -62,6 +62,11 @@ let
|
||||
description = "Linux EEVDF-BORE scheduler Kernel by CachyOS built with LLVM and Thin LTO";
|
||||
};
|
||||
|
||||
ltoFullKernelAttrs = ltoKernelAttrs // {
|
||||
configPath = ./config-nix/cachyos-lto.x86_64-linux.nix;
|
||||
useLTO = "full";
|
||||
};
|
||||
|
||||
serverLtoKernelAttrs = {
|
||||
taste = "linux-cachyos-server";
|
||||
pname = "cachyos-server-lto";
|
||||
@@ -120,7 +125,7 @@ let
|
||||
};
|
||||
});
|
||||
|
||||
isUnsupported = !isx86_64 || !isLinux;
|
||||
isUnsupported = !(isx86_64 || isAarch64) || !isLinux;
|
||||
|
||||
mkCachyKernel =
|
||||
if isUnsupported then
|
||||
@@ -146,7 +151,7 @@ let
|
||||
gccKernel = mkCachyKernel {
|
||||
taste = "linux-cachyos";
|
||||
pname = "cachyos-gcc";
|
||||
configPath = ./config-nix/cachyos-gcc.x86_64-linux.nix;
|
||||
configPath = ( if isx86_64 then ./config-nix/cachyos-gcc.x86_64-linux.nix else ./config-nix/cachyos-gcc.aarch64-linux.nix);
|
||||
# since all flavors use the same versions.json, we just need the updateScript in one of them
|
||||
withUpdateScript = "stable";
|
||||
};
|
||||
@@ -189,6 +194,7 @@ in
|
||||
prev // { recurseForDerivations = false; };
|
||||
};
|
||||
cachyos-lto = mkCachyKernel ltoKernelAttrs;
|
||||
cachyos-lto-full = mkCachyKernel ltoFullKernelAttrs;
|
||||
|
||||
cachyos-lto-znver4 = mkCachyKernel (
|
||||
ltoKernelAttrs
|
||||
|
||||
Reference in New Issue
Block a user