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,30 +26,27 @@ let
}; };
src = src =
if cachyConfig.taste == "linux-cachyos-rc" then if stdenv.isAarch64 then
let
tag = "stable_20250916";
hash = "sha256-Rjn+eWl5cLcc9wgjS3HYVaWM5eKMN3pPfPbsu+QGR/M=";
in
fetchurl {
url = "https://github.com/raspberrypi/linux/archive/refs/tags/${tag}.tar.gz";
hash = hash;
}
else if cachyConfig.taste == "linux-cachyos-rc" then
fetchurl { fetchurl {
url = "https://git.kernel.org/torvalds/t/linux-${version}.tar.gz"; url = "https://git.kernel.org/torvalds/t/linux-${version}.tar.gz";
inherit (cachyConfig.versions.linux) hash; inherit (cachyConfig.versions.linux) hash;
} }
else else
( fetchurl {
if stdenv.isAarch64 then url = "mirror://kernel/linux/kernel/v${lib.versions.major version}.x/linux-${
let if version == "${majorMinor}.0" then majorMinor else version
tag = "stable_20250916"; }.tar.xz";
hash = "sha256-Rjn+eWl5cLcc9wgjS3HYVaWM5eKMN3pPfPbsu+QGR/M="; inherit (cachyConfig.versions.linux) hash;
in };
fetchurl {
url = "https://github.com/raspberrypi/linux/archive/refs/tags/${tag}.tar.gz";
hash = hash;
}
else
fetchurl {
url = "mirror://kernel/linux/kernel/v${lib.versions.major version}.x/linux-${
if version == "${majorMinor}.0" then majorMinor else version
}.tar.xz";
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"