Ibus plasma/wayland setup not working

I am trying to set up ibus on plasma/wayland with this in my configuration.nix:

 i18n.inputMethod = {
    enable = true;
    type = "ibus";
    ibus.engines = with pkgs.ibus-engines; [
      mozc
      rime
      pinyin
      libpinyin
    ];
  };

When I start a session, I get the error

Please unset QT_IM_MODULE and GTK_IM_MODULE environment variables and 'ibus-daemon --panel disable' should be executed as a child process of ibus-ui-gtk3 component. 

It’s clear enough, but I’m uncertain where/how to do this, as I don’t set them anywhere in the configuration. Could someone please advise?

I am also unable to use the compose key, which may be related to the above problem. Because of this, I leave the virtual keyboard disabled until I can get it working properly.

Thank you.