Custom image

Hi,

I want to make a custom image with automated installation. Is it possible to run a custom script after all the snaps are installed?

For example, I want to

# manually connect interfaces.

# set some snap variables.