Configuring Plank using home-manager

I’m pretty new to nixos and home-manager and I would like to use a plank theme. Currently, changing any preference in plank results in it being reset back to the default (in the gui) right away and nothing saves.

How can I configure plank in nixos, home-manager is prefered but honestly, at this point I don’t care how I configure it.