Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation for this change
The linux kernel arm64 default config doesn't include HIDRAW. The kernel docs list this option as "If unsure, say Y". It's been enabled in x86_64 since 12 years ago. It's also been in OpenWRT for 5 years. I'm not sure why it's not on by default for arm64.
Motivation for this change is feature parity between platforms. I was able to do hidraw input on my desktop and on rpi4 (with rpi kernel), but not an rpi3 with linuxPackages built for aarch64.
That said, I'm not very knowledgeable about kernel modules, and the warning on top of
common-config.nix
sounds scary :) so I'd appreciate someone with more experience weighing in if this is as harmless as it looks, or if we should be more careful with the change.I tested this by enabling HIDRAW via kernelPatches, works as expected.
Things done
sandbox
innix.conf
on non-NixOS linux)