How do I enable clipboard sharing in UTM?

Hi, I just installed NixOS with the GNOME desktop environment in UTM (VM). According to the docs, I need spice-vdagent enabled for clipboard sharing. So I edited the configuration file, ran nixos-rebuild switch, and rebooted. Clipboard sharing is still not enabled.

Related discussion post: Clipboard sharing with spice-vdagent not working

Using services.spice-vdagentd.enable = true; worked!