3.5" or 2.5" SATA drives; M.2 NVMe sticks, usually 2280
Laptop
An M.2 slot; older ones a 2.5" bay
M.2 of the length it takes; 2.5" SATA no thicker than the bay (7 or 9.5 mm)
Home NAS
3.5" SATA bays; some have M.2 slots for cache
3.5" SATA hard drives. Most do not take SAS.
Server, SAS bays
2.5" or 3.5" hot-swap bays on a SAS controller
SAS or SATA drives of the bay's size, in the server's own tray
Server, NVMe bays
U.2, U.3 or EDSFF bays
The matching NVMe drive
PlayStation 5
One M.2 slot, PCIe 4.0
M.2 NVMe, 2230 to 22110, with a heatsink. Sony recommends 5,500 MB/s or faster.
Steam Deck
One M.2 slot
M.2 2230 NVMe
Server drives are often sold bare. A hot-swap bay needs the server maker's tray (also called a caddy or sled), which is sold separately when a listing does not include it.
What to buy for the job
For
Buy
Why
A boot drive
M.2 2280 NVMe, 500 GB to 1 TB
The biggest speed-up a computer can get. Check the board has an M.2 slot.