feat: Start ibus as a systemd service
This commit is contained in:
parent
63cc488130
commit
f78f23e9ac
2 changed files with 27 additions and 0 deletions
26
config/programs/ibus.nix
Normal file
26
config/programs/ibus.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -3,6 +3,7 @@
|
|||
./wl-clipboard.nix
|
||||
./mako.nix
|
||||
./swayidle.nix
|
||||
./ibus.nix
|
||||
];
|
||||
wayland.windowManager.sway = {
|
||||
enable = true;
|
||||
|
|
Loading…
Reference in a new issue