Setting configuration files hierarchy

I would like to create config files/folders based on devices - for example:
devices/boiler/[config files]
devices/light/[config files]
devices/tv/[config files]

in these folders i would like to put all the configurations related to that device - HASS UI controls, automations, scripts etc.

is this possible? using includes like:
automation: !include_dir_merge_list automations/
are per “subject” (automation in this case) and not device

You can use packages.

thanks! will check that out