Using Ibus m17n with Nixos

Hi,

I’m just starting out with Nixos. I’ve set up Ibus using the m17n engine as per the Nixos manual entry on Ibus. However, I need to use a custom input method rather than any of the ones that ship with Ibus/m17n. On Void I would manually create a new entry in the m17n database by creating a .mim file in /usr/share/m17n and then modifying mdb.dir file in the same directory. My impression is that there are no options in Nixos that could accomplish this.

So my question is, is there a way to specify the contents of this file in the Nixos configuration? Or is there some other workaround?

Many thanks for any suggestions!

1 Like

Heyo, this is probably not exactly a nix way to do things but you can indeed still create a new entry with m17n by putting the .mim file in .m17n.d directory in the home directory.

provided that you have ibus enabled and m17n declared as an ibus engine in the configuration.

there is probably a proper declarative way to do this, maybe via home-manager, but I am new to nixos