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