nixos-config/config/programs/ibus.nix

27 lines
514 B
Nix
Raw Normal View History

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";
};
};
}