feat: Start ibus as a systemd service

This commit is contained in:
Charlotte 🦝 Delenk 2022-03-20 15:39:46 +01:00
parent 63cc488130
commit f78f23e9ac
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
2 changed files with 27 additions and 0 deletions

26
config/programs/ibus.nix Normal file
View file

@ -0,0 +1,26 @@
{ 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";
};
};
}

View file

@ -3,6 +3,7 @@
./wl-clipboard.nix
./mako.nix
./swayidle.nix
./ibus.nix
];
wayland.windowManager.sway = {
enable = true;