How to config ibus in nixos?

I am using a window-manager, and it seems like ibus requires a config file in /desktop/ibus/, which is a path that I don’t have originally.

I have then read the source for ibus definition in nixOS, and it seems like it is configuring ibus through dconf and dbus, but I am not really sure.

If I have the following config, how I can I apply to ibus? Should I just do what has been done in nixos configuration, and create a package with this config and pass through with dbus?

[general]
use-system-keyboard-layout=false
preload-engines-inited=true
embed-preedit-text=false
1 Like