Repository navigation
kernel: make the pinned Asahi fragment the single hardware overlay - #64
Merged
Merged
Conversation
Apply asahi.config before NixOS policy instead of only validating it against a retained Arch config. Retire the local common hardware copy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Force the provenance and kernel-pin checks on the configure input itself as well as the NixOS feature view. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 31, 2026
RyanTheTide
marked this pull request as ready for review
October 31, 2026 10:38
RyanTheTide
added a commit
that referenced
this pull request
Nov 5, 2026
The v2 tip: speakerguardd#63, #64, #66, #67, #69, #70, #71. The packaged files are unchanged. Fleet gate (gate.json, upstream's, unchanged here): units at parity: spp3, atsp; spp3: J316s, J413, J616s; atsp: J274, J293, J313, J375C, J375D, J473, J474s, J475C, J475D, J493. Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> Assisted-by: LLM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Use the pinned kernel's
asahi.configas the sole Apple hardware overlay for every supported Mac. Supersedes #28 for the current integration pin; its branch is preserved.Built on DJ's merged prior work: ALARM #44 restored the full distribution base, NixOS #51 made NixOS inherit ALARM's resolved config, and NixOS #48 restored dm-integrity, Bluetooth LE, nftables, PSI and exFAT. All three are ancestors of the checkout baselines used for this audit. Their work is preserved; this PR addresses the remaining hardware-copy/config-drift gap. ALARM remains the resolved-config authority, and NixOS derives its hardware choices from that canonical snapshot. Fedora consumes the same source-pinned kernel fragment without a third hardware fragment.
common.confignixos.configolddefconfigolddefconfig, then strict source/policy validationPreserve distribution policy and generic peripheral support. NixOS retains DJ’s ALARM resolved-snapshot inheritance and refreshes that canonical input; it applies only NixOS policy and validates the matching source fragment. Fedora now validates the shared fragment, including radio prerequisites, rather than validating only local copies.
Source compatibility remains an explicit gate: the shipping pin
5d7c3e7(and integration tip23827fe8checked during this audit) does not contain theaurora-wipradio rename/AVE/runtime-PM/USB4-tunnel/DRAM changes. ALARM/Fedora resolve those options from the matching source fragment; NixOS must refresh its canonical ALARM snapshot for the same pin, but this PR does not claim to backport their implementations. Seedocs/universal-kernel-config.mdfor the feature contract. The source pin is retained pending the source-line decision.Canonical ALARM snapshot: 493e18f, SHA256
0eecd1615eadf03039f945bbe57aa8f94dbb9714605c520f62e4d3d248c54e44. NixOS vendors those exact bytes and rejects a mismatched kernel pin or hash before building. It adds only NixOS policy.Resolved config diff (ARM64, LLVM 22.1.6 / Rust 1.97.1, exact pin
5d7c3e7; absent symbols normalized ton):SPI_HID_APPLE_OFSPI_HID_APPLE_COREThe final matrix uses the exact committed config inputs. Fedora and Arch now differ in only 10 security/SELinux/release settings; NixOS differs from Arch only in
LOCALVERSION. Existing generic external-device support is preserved, and Fedora gains the generic dock/memory settings Arch and NixOS already had.Fleet11 is the original
4db3a5a2release input (config SHA256af48f771780da4111f2973f67171f834e02d4ed27b823d4f97545b3b7e8b76bf), independently checked against its original output. The broader differences include distribution policy, non-Apple drivers and KUnit selections; this is not a claim of whole-config equality. In particularUSERFAULTFDremains disabled in the distro bases versus enabled in fleet11. Shared hardware agreement and whole-config agreement are separate measurements.Forward validation at
8348f824also passes on all three: ALARM resolves hardware once for that source; NixOS consumes that resolved result and applies only its policy. All 134 shared requests match. The probes explicitly assertPCIE_APPLE_T8140_BOOTSTRAP=y,MT7932_FULLMAC=m,BT_MTK7932_PCIE=m,VIDEO_APPLE_AVE=m,DRM_ACCEL_ANE=m,PM=y,APPLE_ADMAC=m,I2C_APPLE=m,USB4=m,USB4_APPLE_SOC=m,RESET_APPLE_CIO=y,PCIE_APPLE=yandAPPLE_PMP_REPORT=y. Both source matrices verify NixOS differs from ALARM only inLOCALVERSION.A deliberate Kconfig-only replay of the old shipping snapshot against the newer source drops bootstrap/Wi-Fi/Bluetooth/AVE. NixOS now rejects a stale snapshot kernel pin or changed hash before configuration. Future source promotion must refresh ALARM's canonical snapshot and its NixOS provenance together. These forward probes change no shipping pin and prove no runtime behavior.
Validation completed through controller-approved buildbox slots on the final configuration inputs: native Linux suites Fedora 212, ALARM 171, NixOS 192 (575 total), and both complete source/distro config matrices pass. The canonical ALARM and vendored NixOS snapshots are byte-identical. NixOS hosted evaluation passes with the provenance assertions forced on its real build input. Complete symbol comparisons and failure/rollback evidence remain in the local audit report. No kernel Image/modules build or device qualification is inferred from config-only gates. CI on final commits is green:
136be48493e18fd578f52All current-head checks succeed; unrelated manual graphics/x86 jobs are skipped by the existing workflow conditions. No checks were weakened. NixOS evaluation, source checks and overlay tests also pass.
Parity: Fedora #77, Arch #61, NixOS #64. CI is green. This remains a draft because the shipping integration pin still lacks the newer source implementations discussed above; no package channel or device deployment is promoted.