This commit is contained in:
mjallen18
2026-03-04 15:52:24 -06:00
parent 23f5f6c3b3
commit 0dc60c261b
3 changed files with 18 additions and 9649 deletions

View File

@@ -62,7 +62,7 @@ in
inherit cachyConfig kconfigToNix; inherit cachyConfig kconfigToNix;
features = { features = {
efiBootStub = true; efiBootStub = true;
ia32Emulation = true; ia32Emulation = stdenv.isx86_64;
netfilterRPFilter = true; netfilterRPFilter = true;
}; };
isLTS = false; isLTS = false;

View File

@@ -26,13 +26,6 @@ let
}; };
src = src =
if cachyConfig.taste == "linux-cachyos-rc" then
fetchurl {
url = "https://git.kernel.org/torvalds/t/linux-${version}.tar.gz";
inherit (cachyConfig.versions.linux) hash;
}
else
(
if stdenv.isAarch64 then if stdenv.isAarch64 then
let let
tag = "stable_20250916"; tag = "stable_20250916";
@@ -42,14 +35,18 @@ let
url = "https://github.com/raspberrypi/linux/archive/refs/tags/${tag}.tar.gz"; url = "https://github.com/raspberrypi/linux/archive/refs/tags/${tag}.tar.gz";
hash = hash; hash = hash;
} }
else if cachyConfig.taste == "linux-cachyos-rc" then
fetchurl {
url = "https://git.kernel.org/torvalds/t/linux-${version}.tar.gz";
inherit (cachyConfig.versions.linux) hash;
}
else else
fetchurl { fetchurl {
url = "mirror://kernel/linux/kernel/v${lib.versions.major version}.x/linux-${ url = "mirror://kernel/linux/kernel/v${lib.versions.major version}.x/linux-${
if version == "${majorMinor}.0" then majorMinor else version if version == "${majorMinor}.0" then majorMinor else version
}.tar.xz"; }.tar.xz";
inherit (cachyConfig.versions.linux) hash; inherit (cachyConfig.versions.linux) hash;
} };
);
schedPatches = schedPatches =
if cachyConfig.cpuSched == "eevdf" then if cachyConfig.cpuSched == "eevdf" then
@@ -354,7 +351,7 @@ let
# Raspberry Pi # Raspberry Pi
"-d CONFIG_ARM64_4K_PAGES" "-d CONFIG_ARM64_4K_PAGES"
"-e CONFIG_ARM64_16K_PAGES" "-e CONFIG_ARM64_16K_PAGES"
"-e CONFI`G_ARM_RASPBERRYPI_CPUFREQ" "-e CONFIG_ARM_RASPBERRYPI_CPUFREQ"
"-e CONFIG_RASPBERRYPI_FIRMWARE" "-e CONFIG_RASPBERRYPI_FIRMWARE"
"-e CONFIG_TOUCHSCREEN_RASPBERRYPI_FW" "-e CONFIG_TOUCHSCREEN_RASPBERRYPI_FW"
"-e CONFIG_RASPBERRYPI_GPIOMEM" "-e CONFIG_RASPBERRYPI_GPIOMEM"
@@ -460,7 +457,6 @@ stdenv.mkDerivation (finalAttrs: {
''; '';
meta = ogKernelConfigfile.meta // { meta = ogKernelConfigfile.meta // {
# at the time of this writing, they don't have config files for aarch64
platforms = [ platforms = [
"x86_64-linux" "x86_64-linux"
"aarch64-linux" "aarch64-linux"