3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/modules/i18n/inputMethod/nabi.nix

38 lines
709 B
Nix
Raw Normal View History

2016-02-16 14:01:03 +00:00
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.i18n.inputMethod.nabi;
in
{
options = {
i18n.inputMethod.nabi = {
enable = mkOption {
type = types.bool;
default = false;
example = true;
description = ''
Enable nabi input method.
Nabi can be used to input Korean.
'';
};
};
};
{
config = mkIf cfg.enable {
environment.systemPackages = [ pkgs.nabi ];
qtPlugins = [ pkgs.nabi ];
environment.variables = {
GTK_IM_MODULE = "nabi";
QT_IM_MODULE = "nabi";
XMODIFIERS = "@im=nabi";
};
services.xserver.displayManager.sessionCommands = "${pkgs.nabi}/bin/nabi &";
};
}