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 # Latest Server
linuxPackages_cachyos-server-lto = cachyosPackages.cachyos-server-lto; linuxPackages_cachyos-server-lto = cachyosPackages.cachyos-server-lto;
linuxPackages_cachyos-server-lto-znver4 = cachyosPackages.cachyos-server-lto-znver4; linuxPackages_cachyos-server-lto-znver4 = cachyosPackages.cachyos-server-lto-znver4;
linuxPackages_cachyos-server-lto-16k = cachyosPackages.cachyos-server-lto-16k;
# RC # RC
linuxPackages_cachyos-rc-lto = cachyosPackages.cachyos-rc-lto; linuxPackages_cachyos-rc-lto = cachyosPackages.cachyos-rc-lto;
linuxPackages_cachyos-rc-lto-znver4 = cachyosPackages.cachyos-rc-lto-znver4; 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 # Server LTO Zen Version 4
cachyos-server-lto-znver4 = mkCachyKernel ( cachyos-server-lto-znver4 = mkCachyKernel (
serverLtoKernelAttrs serverLtoKernelAttrs

View File

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

View File

@@ -112,7 +112,8 @@ let
++ damonConfig ++ damonConfig
++ ntSyncConfig ++ ntSyncConfig
++ hdrConfig ++ hdrConfig
++ disableDebug; ++ disableDebug
++ pageSizeConfig;
# _cachy_config, defaults to "y" # _cachy_config, defaults to "y"
basicCachyConfig = lib.optional cachyConfig.basicCachy "-e CACHY"; basicCachyConfig = lib.optional cachyConfig.basicCachy "-e CACHY";
@@ -270,6 +271,17 @@ let
else else
throw "Unsupported cachyos _hugepage"; 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 # _damon, defaults to empty
damonConfig = lib.optionals cachyConfig.withDAMON [ damonConfig = lib.optionals cachyConfig.withDAMON [
"-e DAMON" "-e DAMON"