Closed RossComputerGuy closed 8 months ago
I am fairly certain the documentation is buggy there. For instance, in nixpkgs itself, CONFIG_
is not included when writing stuff in extraConfig
. This is what I assumed and what the wiki says too.
What exact assertion is failing? Maybe that assertion is also incorrect, or there is a bug between that line you point to (which is correct and necessary to make the proper .config
) and the assertion.
error:
Failed assertions:
- CONFIG_ANDROID_BINDER_IPC is not enabled!
- CONFIG_ANDROID_BINDERFS is not enabled!
- CONFIG_ASHMEM is not enabled!
This has been fixed. The documentation is wrong and there was also a bug in nixos-apple-silicon.
According to the documentation listed on search.nixos.org, the
extraConfig
option inboot.kernelPatches
is a directCONFIG_*
line. nixos-apple-silicon adds inCONFIG_
as shown here. This will cause issues when the required config is checked.Example
Fails asserts due to a required config check:
Evaluates but does not function properly:
Works: