This commit is contained in:
mjallen18
2026-01-07 15:27:38 -06:00
parent 97e4060b52
commit 8406714527
5 changed files with 8733 additions and 1 deletions

View File

@@ -43,6 +43,9 @@ in
# Latest Server
linuxPackages_cachyos-server-lto = cachyosPackages.cachyos-server-lto;
linuxPackages_cachyos-server-lto-znver4 = cachyosPackages.cachyos-server-lto-znver4;
linuxPackages_cachyos-server-lto-16k = cachyosPackages.cachyos-server-lto-16k;
# RC
linuxPackages_cachyos-rc-lto = cachyosPackages.cachyos-rc-lto;
linuxPackages_cachyos-rc-lto-znver4 = cachyosPackages.cachyos-rc-lto-znver4;

View File

@@ -339,6 +339,18 @@ in
}
);
# Server LTO
cachyos-server-lto-16k = mkCachyKernel (
ltoKernelAttrs
// serverAttrs
// {
taste = "linux-cachyos-server";
pname = "cachyos-server-lto";
configPath = ./config-nix/${arch}-linux/cachyos-server-lto-16k.${arch}-linux.nix;
pageSize = "16k";
}
);
# Server LTO Zen Version 4
cachyos-server-lto-znver4 = mkCachyKernel (
serverLtoKernelAttrs

View File

@@ -29,6 +29,7 @@
withNTSync ? true,
withHDR ? true,
withoutDebug ? false,
pageSize ? "4k",
description ? "Linux EEVDF-BORE scheduler Kernel by CachyOS with other patches and improvements",
# For flakes
inputs ? { },
@@ -84,6 +85,7 @@ let
withoutDebug
description
withUpdateScript
pageSize
;
};

View File

@@ -112,7 +112,8 @@ let
++ damonConfig
++ ntSyncConfig
++ hdrConfig
++ disableDebug;
++ disableDebug
++ pageSizeConfig;
# _cachy_config, defaults to "y"
basicCachyConfig = lib.optional cachyConfig.basicCachy "-e CACHY";
@@ -270,6 +271,17 @@ let
else
throw "Unsupported cachyos _hugepage";
pageSizeConfig =
if cachyConfig.pageSize == "16k" then
[
"-d CONFIG_ARM64_4K_PAGES"
"-e CONFIG_ARM64_16K_PAGES"
]
else if cachyConfig.pageSize == "4k" then
[ ]
else
throw "Unsupported cachyos _hugepage";
# _damon, defaults to empty
damonConfig = lib.optionals cachyConfig.withDAMON [
"-e DAMON"