Skip to content

Architecture Decisions

# Decision Rationale
D1 NixOS and flakes are the basis. Builds are reproducible; the author's experience and the proximity to the community.
D2 disko builds the deliverables; repartitioning on the device uses a separate solution. disko does not cover repartitioning from the initrd.
D3 A versioned JSON layer, kept close to disko's format, is the user-facing configuration. disko's format is too complex for end users, and only one partition may take 100%. A module computes the disko configuration from it.
D4 The full image is the recommended way for most users; the minimal image stays an official deliverable and is the flake's default. Growing the minimal image needs root on the host and maintenance across host systems. For Nix users the script can be shipped through the flake, which keeps the cost manageable — and they want control over what goes onto the stick.
D5 GRUB boots the images and can be extended. Compatibility with existing approaches, and the most flexibility with simple development.
D6 The catalog is a flake module. The initrd evaluates the current upstream flake.
D7 A libretoy-live bootloader entry is offered at every boot, and repartitioning is possible at any time. The stick stays under the user's control.
D8 Only a BIOS boot partition and an EFI partition are required. Maximum freedom for the user's own layout.