Files
JakeHillion 7f1ea8e078
commit-validation / validate-single-commit (pull_request) Successful in 4s
buildbot/nix-eval Build done. (468 warnings)
buildbot/nix-build Build done.
buildbot/nix-effects Build done.
magicbluetoothd: pair Apple Magic devices on bluetooth hosts
Apple Magic keyboards and trackpads had to be paired by hand on every
host with a Bluetooth adapter. magicbluetoothd watches USB and stages a
pairing into bluez whenever such a device is plugged in.

Adds the magicbluetoothd flake as an input, pulls its NixOS module into
the shared module list in mkSystem, and enables the service from
defaults.nix.

The upstream module asserts on hardware.bluetooth.enable, so the default
tracks that option rather than being unconditional; hosts without a
Bluetooth stack get no unit at all. It is mkDefault so a host can still
opt out.

Test plan:
- CI
- Built merlin, bob and stinger toplevels; magicbluetoothd built from
  source and the unit landed with its hardening intact (CAP_NET_ADMIN
  only, ProtectSystem=strict, DeviceAllow=char-usb_device)
- Evaluated boron, which has no bluetooth, and confirmed it generates no
  magicbluetoothd unit
2026-07-24 22:43:15 +01:00
..