mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 00:53:57 +00:00
18 lines
396 B
Nix
18 lines
396 B
Nix
{ config, pkgs, lib, ... }:
|
|
let
|
|
imcfg = config.i18n.inputMethod;
|
|
in
|
|
{
|
|
config = lib.mkIf (imcfg.enable && imcfg.type == "nabi") {
|
|
i18n.inputMethod.package = pkgs.nabi;
|
|
|
|
environment.variables = {
|
|
GTK_IM_MODULE = "nabi";
|
|
QT_IM_MODULE = "nabi";
|
|
XMODIFIERS = "@im=nabi";
|
|
};
|
|
|
|
services.xserver.displayManager.sessionCommands = "${pkgs.nabi}/bin/nabi &";
|
|
};
|
|
}
|