mirror of
https://github.com/nix-community/home-manager
synced 2024-11-24 20:19:45 +01:00
24 lines
563 B
Nix
24 lines
563 B
Nix
|
{ config, pkgs, lib, ... }:
|
||
|
|
||
|
with lib; {
|
||
|
config = mkIf (config.i18n.inputMethod.enabled == "nabi") {
|
||
|
i18n.inputMethod.package = pkgs.nabi;
|
||
|
|
||
|
home.sessionVariables = {
|
||
|
GTK_IM_MODULE = "nabi";
|
||
|
QT_IM_MODULE = "nabi";
|
||
|
XMODIFIERS = "@im=nabi";
|
||
|
};
|
||
|
|
||
|
systemd.user.services.nabi-daemon = {
|
||
|
Unit = {
|
||
|
Description = "Nabi input method editor";
|
||
|
PartOf = [ "graphical-session.desktop" ];
|
||
|
};
|
||
|
Service.ExecStart = "${pkgs.nabi}/bin/nabi";
|
||
|
Install.WantedBy = [ "graphical-session.target" ];
|
||
|
};
|
||
|
};
|
||
|
|
||
|
}
|