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

View File

@@ -168,7 +168,7 @@ in
home.packages = with pkgs; [ home.packages = with pkgs; [
pkgs.${namespace}.bolt-launcher pkgs.${namespace}.bolt-launcher
pkgs.${namespace}.discord-krisp pkgs.${namespace}.discord-krisp
pkgs.${namespace}.librepods # pkgs.${namespace}.librepods
bottles bottles
compose2nix compose2nix

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"; 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 # Evaluation hack
brokenReplacement = pkgs.hello.overrideAttrs (prevAttrs: { brokenReplacement = pkgs.hello.overrideAttrs (prevAttrs: {
meta = prevAttrs.meta // { meta = prevAttrs.meta // {
@@ -160,6 +200,15 @@ in
description = "Linux EEVDF scheduler Kernel by CachyOS targeted for Servers"; 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 { cachyos-hardened = mkCachyKernel {
taste = "linux-cachyos-hardened"; taste = "linux-cachyos-hardened";
configPath = ./config-nix/cachyos-hardened.x86_64-linux.nix; configPath = ./config-nix/cachyos-hardened.x86_64-linux.nix;

View File

@@ -1,6 +1,6 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
let let
kernel = pkgs.linuxPackages_cachyos; kernel = pkgs.linuxPackages_cachyos-lto-znver4;
pkgsVersion = pkgs; # .unstable; pkgsVersion = pkgs; # .unstable;
in in
{ {

View File

@@ -71,13 +71,13 @@
VISUAL = "${lib.getExe' pkgs.vscodium "codium"} --wait"; VISUAL = "${lib.getExe' pkgs.vscodium "codium"} --wait";
}; };
security.wrappers.librepods = { # security.wrappers.librepods = {
source = "${pkgs.${namespace}.librepods}/bin/librepods"; # source = "${pkgs.${namespace}.librepods}/bin/librepods";
owner = "matt"; # owner = "matt";
group = "users"; # group = "users";
setuid = false; # setuid = false;
capabilities = "cap_net_admin+p"; # capabilities = "cap_net_admin+p";
}; # };
specialisation = { specialisation = {
"cosmic".configuration = { "cosmic".configuration = {