Debian NAS setup with NVMe + RAID5 + HDD, LUKS encryption, and LVM

I am setting up a NAS/home server, and I’m struggling to understand how to correctly configure the storage, especially in which order I should proceed.

My situation is the following:

  • One NVMe drive for boot, system, and swap.
  • Three 500GB HDDs, to set up as RAID5, as storage.
  • One 2TB HDD as additional storage.

Additionally, I would like to encrypt all the storage (with a single password).
I am on Debian 12 (Bookworm) (and I’ll run Yunohost on top).

In which order do I proceed? Do I install Debian on the NVMe and take care of the rest later, or do everything while installing? Do I use LVM on the NVMe, or on all disks? How do I configure LUKS to encrypt all the drives? Do I leave a boot partition out of LUKS?

I would be grateful if anyone could point me to some resources on the matter, as I am a tad lost. Thank you!