server-lto

This commit is contained in:
mjallen18
2025-12-11 19:55:17 -06:00
parent 8d1a9312cb
commit 64f34892b7
6 changed files with 9688 additions and 9 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1 @@
import ./cachyos-server-lto.x86_64-linux.nix // { "CONFIG_X86_64_VERSION" = "ZEN4"; }

View File

@@ -61,6 +61,46 @@ let
description = "Linux EEVDF-BORE scheduler Kernel by CachyOS built with LLVM and Thin LTO";
};
serverLtoKernelAttrs = {
taste = "linux-cachyos-server";
configPath = ./config-nix/cachyos-lto.x86_64-linux.nix;
# Pass the unified arguments (including the resolved 'self') to llvm-pkgs
inherit (import ./lib/llvm-pkgs.nix (args // { inherit self; })) callPackage;
useLTO = "thin";
packagesExtend = import ./lib/llvm-module-overlay.nix args;
zfsOverride = {
inherit (pkgs)
autoreconfHook269
util-linux
coreutils
perl
udevCheckHook
zlib
libuuid
python3
attr
openssl
libtirpc
nfs-utils
gawk
gnugrep
gnused
systemd
smartmontools
sysstat
pkg-config
curl
pam
nix-update-script
;
};
description = "Linux EEVDF-BORE scheduler Kernel by CachyOS built with LLVM and Thin LTO";
};
# Evaluation hack
brokenReplacement = pkgs.hello.overrideAttrs (prevAttrs: {
meta = prevAttrs.meta // {
@@ -160,6 +200,15 @@ in
description = "Linux EEVDF scheduler Kernel by CachyOS targeted for Servers";
};
cachyos-server-lto = mkCachyKernel serverLtoKernelAttrs;
cachyos-server-lto-znver4 = mkCachyKernel (
serverLtoKernelAttrs
// {
configPath = ./config-nix/cachyos-znver4.x86_64-linux.nix;
}
);
cachyos-hardened = mkCachyKernel {
taste = "linux-cachyos-hardened";
configPath = ./config-nix/cachyos-hardened.x86_64-linux.nix;