feat(deploy): USB-bootable douro image (disk-image-douro-usb) #114

Merged
padreug merged 1 commit from feat/douro-usb into dev 2026-09-29 20:51:29 +00:00
Owner

Rebased onto current dev (was branched at 59e8a9d, 2026-09-06). Single commit, unchanged in content — it's been sitting unmerged while the douro ran from it.

Gives the douro the same run-from-USB shape batm3 already has: lifts the batm3-usb module and image post-processing into shared usbBootModule / mkUsbDiskImage helpers, then adds nixosConfigurations.douro-usb and packages.disk-image-douro-usb on top of douro-installed. batm3-usb evaluates to the same fileSystems/upgrade config as before.

Needed in dev before the douro can be rebuilt from dev at all — #douro-usb doesn't exist there today. nix eval .#nixosConfigurations.douro-usb.config.system.build.toplevel.drvPath succeeds after the rebase.

Rebased onto current dev (was branched at 59e8a9d, 2026-09-06). Single commit, unchanged in content — it's been sitting unmerged while the douro ran from it. Gives the douro the same run-from-USB shape batm3 already has: lifts the batm3-usb module and image post-processing into shared `usbBootModule` / `mkUsbDiskImage` helpers, then adds `nixosConfigurations.douro-usb` and `packages.disk-image-douro-usb` on top of `douro-installed`. batm3-usb evaluates to the same fileSystems/upgrade config as before. Needed in dev before the douro can be rebuilt from dev at all — `#douro-usb` doesn't exist there today. `nix eval .#nixosConfigurations.douro-usb.config.system.build.toplevel.drvPath` succeeds after the rebase.
The douro cutover to bitspire is being done remotely with a USB stick
and the machine's internal drive is not NixOS, so the stick has to be
the system rather than an installer medium. Give douro the same
run-from-USB shape batm3 already has.

flake.nix
- Lift the batm3-usb module and image post-processing into shared
  `usbBootModule` / `mkUsbDiskImage` helpers (distinct nixos-usb/ESP-USB
  labels, nofail /boot, no growPartition, autoUpgrade off, ESP relabel).
  batm3-usb evaluates to the same fileSystems/upgrade config as before.
- Add `nixosConfigurations.douro-usb` and
  `packages.disk-image-douro-usb` on top of douro-installed.

douro.nix
- Blacklist uas and set usbcore.autosuspend=-1, the same bus-drop
  hardening batm3.nix carries, so a stick is a reliable boot medium on
  the Bay Trail box.

README
- Document the -usb outputs and the flash-with-Etcher, no-installer flow.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
padreug deleted branch feat/douro-usb 2026-09-29 20:51:29 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
aiolabs/bitspire!114
No description provided.