Dash to dock does not respect max-icon-size when set with dconf.settings in configuration.nix

I’m trying to set dash-to-docks max-icon-size to 32px in my configuration.nix.
The extension respects max-icon-size when set through the extensions settings page, but resets to 48px when I run nixos-rebuild --switch.
Is there something I’m missing or could this be an issue with the extension itself?

dconf is a strongly-typed database system so you need to use proper types (leave i as numbers, wrap u with lib.hm.gvariant.mkUint32, …; see the types.gvariant section in home-manager docs).

If you have not already applied this configuration, you could have used dconf2nix to export the database configuration in home-manager compatible format. But now that the database contains values of wrong types, you will either need to clean the database with the following commands, configure the extensions again and export the correct values:

dconf reset -f /org/gnome/shell/extensions/dash-to-dock
dconf reset -f /org/gnome/shell/extensions/just-perfection
dconf reset -f /org/gnome/shell/extensions/blur-my-shell

Or manually correct the values in your configuration using the GVariant value constructor appropriate to the type listed in the schema: