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
This commit is contained in:
Can H. Tartanoglu 2026-02-28 08:45:16 +01:00
parent c9cebabdce
commit f0bd45133a
No known key found for this signature in database
GPG Key ID: 4623DEA06FDACFE1

View File

@ -4,6 +4,7 @@ with lib.kernel;
{ {
common = { common = {
CACHY = yes; CACHY = yes;
RUST = yes;
# https://wiki.cachyos.org/configuration/general_system_tweaks/#adios-io-scheduler # https://wiki.cachyos.org/configuration/general_system_tweaks/#adios-io-scheduler
MQ_IOSCHED_ADIOS = yes; MQ_IOSCHED_ADIOS = yes;