From f0bd45133a4969b715a8069cf17e7002f00376cb Mon Sep 17 00:00:00 2001 From: "Can H. Tartanoglu" Date: Sat, 28 Feb 2026 08:45:16 +0100 Subject: [PATCH] feat: enable CONFIG_RUST=y in common settings Upstream CachyOS (linux-cachyos/config) already ships CONFIG_RUST=y, so this is also a bug fix, the nix packages should mirror upstream but were missing this option. Without CONFIG_RUST=y, the Rust sysroot (libcore, liballoc, libkernel), target.json, and build infrastructure are never generated during `make modules_prepare`, making out-of-tree Rust kernel module compilation impossible despite `withRust = true` and the toolchain being available in moduleBuildDependencies. Closes #37 --- kernel-cachyos/cachySettings.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel-cachyos/cachySettings.nix b/kernel-cachyos/cachySettings.nix index f677a70..90b94db 100644 --- a/kernel-cachyos/cachySettings.nix +++ b/kernel-cachyos/cachySettings.nix @@ -4,6 +4,7 @@ with lib.kernel; { common = { CACHY = yes; + RUST = yes; # https://wiki.cachyos.org/configuration/general_system_tweaks/#adios-io-scheduler MQ_IOSCHED_ADIOS = yes;