I created the entry for Arduino Nanos with the old bootloader. Feel free to add this to the editor/arduino/examples/baremetal/hals.json file.
nano.menu.cpu.atmega328.bootloader.file=atmega/ATmegaBOOT_168_atmega328.hex nano.menu.cpu.atmega328.bootloader.file=optiboot/optiboot_atmega328.hex nano.menu.cpu ...