nabi service: init

This commit is contained in:
Eric Sagnes 2016-02-16 23:01:03 +09:00
parent 4a199d9955
commit 3ed3f061da
2 changed files with 38 additions and 0 deletions

View File

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

View File

@ -45,6 +45,7 @@
./hardware/video/webcam/facetimehd.nix
./i18n/inputMethod/fcitx.nix
./i18n/inputMethod/ibus.nix
./i18n/inputMethod/nabi.nix
./i18n/inputMethod/uim.nix
./installer/tools/auto-upgrade.nix
./installer/tools/nixos-checkout.nix