Skip to content

kernel: restore dm-integrity, Bluetooth LE, nftables, PSI and exFAT - #48

Merged
DjDeveloperr merged 1 commit into
mainfrom
kernel/restore-dropped-options-20261030
Oct 30, 2026
Merged

DjDeveloperr merged 1 commit into
mainfrom
kernel/restore-dropped-options-20261030

Conversation

@DjDeveloperr

Copy link
Copy Markdown
Contributor

#31 builds the kernel from ARM64 defconfig, the pinned asahi.config, kernel/common.config and kernel/nixos.config. alarm-aurora made the same change in its #30, and it lost dm-crypt and dm-integrity, which broke its encrypted-root initramfs builds (alarm-aurora #44). This PR is the NixOS check and fix, made before the cache and images are published.

What changed between kernels

Compared with the kernel the previous cache carries (7.3.0, embedded config from its Image), the options below are unset at the new pin. Neither defconfig nor any fragment sets them, and Kconfig gives them no default.

Area Options Why it matters here
Encrypted root, cryptsetup DM_INTEGRITY, CRYPTO_USER_API_HASH/SKCIPHER/AEAD LUKS2 integrity, and the AF_ALG interface cryptsetup uses. Same set as alarm-aurora #44. DM_CRYPT is already in nixos.config.
Bluetooth BT_LE, UHID, BT_RFCOMM, BT_BNEP hardware.bluetooth.enable is on. bluez needs /dev/uhid for HID-over-GATT keyboards and mice, and defconfig ships # CONFIG_BT_LE is not set. Same set as alarm-aurora #44.
Firewall NF_TABLES (+ inet/ipv4/ipv6), NFT_COMPAT, NFT_CT, NFT_LOG, NFT_REJECT, NETFILTER_XT_MATCH_PKTTYPE, IP(6)_NF_TARGET_REJECT, IP(6)_NF_MATCH_RPFILTER The NixOS firewall is on by default. nixpkgs' iptables is built with nftablesCompat = true, so its rules need nf_tables plus x_tables compatibility. Listing the rpfilter match in nixos.config (the overlay's kernel.config) also keeps checkReversePath at its default, as the previous configuration did.
Memory pressure PSI systemd.oomd.enable defaults to true, and systemd-oomd needs /proc/pressure.
Removable media EXFAT_FS exFAT USB drives and SD cards.

All of them go in kernel/nixos.config, which leaves the shared common.config unchanged. validate-config.py already fails the kernel build if Kconfig does not resolve any requested value, so this PR's kernel job checks every line above.

Not restored

The universal kernel still drops other options the previous full configuration had, for example WireGuard, ZRAM/ZSWAP, Landlock, HIDRAW, NTFS3/ISO9660/UDF and many HID and gamepad drivers. alarm-aurora #44 says the same for its kernel. Choosing which of those to bring back is a separate decision. This PR restores what the images use by default plus exFAT.

Testing

  • tests/test_kernel_config.py passes.
  • Each option's Kconfig dependencies were checked against the 695d974 sources. The REJECT and rpfilter matches depend on NFT_COMPAT, and the AF_ALG options only on NET.
  • The kernel build in this PR's checks runs the validator on the resolved config.

🤖 Generated with Claude Code

#31 builds the kernel from ARM64 defconfig, the pinned asahi.config and
the two fragments. The previous full configuration had these options and
defconfig does not:

- DM_INTEGRITY and the AF_ALG user APIs that cryptsetup uses, and
  BT_LE, UHID, BT_RFCOMM and BT_BNEP for the Bluetooth service the
  images enable (the same set as alarm-aurora #44);
- nf_tables with x_tables compatibility, REJECT, pkttype and rpfilter:
  the NixOS firewall is on by default and nixpkgs' iptables is the
  nf_tables variant, so without them firewall.service cannot load its
  rules; listing rpfilter also keeps reverse-path filtering on;
- PSI, which systemd-oomd (on by default in NixOS) needs;
- EXFAT_FS for removable media.

validate-config.py fails the build if Kconfig does not resolve any of
them to the requested value.

Assisted-by: Claude Opus 5.5
@DjDeveloperr
DjDeveloperr merged commit 9f44347 into main Oct 30, 2026
3 of 24 checks passed
@DjDeveloperr
DjDeveloperr deleted the kernel/restore-dropped-options-20261030 branch October 30, 2026 06:46
RyanTheTide added a commit that referenced this pull request Oct 31, 2026
Continue DJ’s #51 snapshot inheritance and #48 desktop policy. Refresh from the resolved ALARM config, apply only NixOS policy, and reject stale kernel/config provenance during evaluation. ALARM #44 remains the distribution-base foundation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant