2022-06-12 15:39:15 +00:00
|
|
|
{pkgs, ...}: let
|
2022-03-20 14:39:46 +00:00
|
|
|
ibusPackage = pkgs.ibus-with-plugins.override {
|
|
|
|
plugins = with pkgs.ibus-engines; [
|
|
|
|
mozc
|
|
|
|
table
|
|
|
|
table-others
|
|
|
|
uniemoji
|
|
|
|
];
|
|
|
|
};
|
2022-06-12 15:39:15 +00:00
|
|
|
in {
|
2022-03-20 14:39:46 +00:00
|
|
|
systemd.user.services.ibus = {
|
|
|
|
Unit = {
|
|
|
|
Description = "IBus daemon";
|
2022-06-12 15:39:15 +00:00
|
|
|
PartOf = ["graphical-session.target"];
|
|
|
|
Requires = ["dbus.socket"];
|
2022-03-20 14:39:46 +00:00
|
|
|
};
|
|
|
|
Install = {
|
2022-06-12 15:39:15 +00:00
|
|
|
WantedBy = ["graphical-session.target"];
|
2022-03-20 14:39:46 +00:00
|
|
|
};
|
|
|
|
Service = {
|
|
|
|
ExecStart = "${ibusPackage}/bin/ibus-daemon --xim";
|
|
|
|
};
|
|
|
|
};
|
2022-05-11 18:50:28 +00:00
|
|
|
dconf.settings = {
|
|
|
|
"desktop/ibus/general" = {
|
2022-06-12 15:39:15 +00:00
|
|
|
engines-order = ["xkb:de:neo:deu" "mozc-jp"];
|
|
|
|
preload-engines = ["xkb:de:neo:deu" "mozc-jp"];
|
2022-05-11 18:50:28 +00:00
|
|
|
use-system-keyboard-layout = true;
|
|
|
|
version = "1.5.26";
|
|
|
|
};
|
|
|
|
"desktop/ibus/panel" = {
|
|
|
|
show = 0;
|
|
|
|
use-glyph-from-engine-lang = true;
|
|
|
|
};
|
|
|
|
"desktop/ibus/emoji" = {
|
2022-06-12 15:39:15 +00:00
|
|
|
hotkey = ["<Control><Shift>e"];
|
2022-05-11 18:50:28 +00:00
|
|
|
};
|
|
|
|
};
|
2022-03-20 14:39:46 +00:00
|
|
|
}
|