summary refs log tree commit diff
path: root/nixos/modules/i18n/input-method/hime.nix
diff options
context:
space:
mode:
authorAntonio Yang <yanganto@gmail.com>2020-10-09 23:32:58 +0800
committerAntonio Yang <yanganto@gmail.com>2020-10-17 10:48:31 +0800
commit52b903b3c4bbdba141f0402774ab0f69f29dbfee (patch)
tree9369025fd0003c3b8dc27e8dbdf0dc3ee3fbc5ff /nixos/modules/i18n/input-method/hime.nix
parentd81e10c73584b0092d7fc021c691fdac2fd58db1 (diff)
downloadnixpkgs-52b903b3c4bbdba141f0402774ab0f69f29dbfee.tar
nixpkgs-52b903b3c4bbdba141f0402774ab0f69f29dbfee.tar.gz
nixpkgs-52b903b3c4bbdba141f0402774ab0f69f29dbfee.tar.bz2
nixpkgs-52b903b3c4bbdba141f0402774ab0f69f29dbfee.tar.lz
nixpkgs-52b903b3c4bbdba141f0402774ab0f69f29dbfee.tar.xz
nixpkgs-52b903b3c4bbdba141f0402774ab0f69f29dbfee.tar.zst
nixpkgs-52b903b3c4bbdba141f0402774ab0f69f29dbfee.zip
hime: fix enable hime, remove hime-all package
- fix inputMethod.enable hime by adding module list
- rm hime-all package, because chewing, anthy modules does not work well
Diffstat (limited to 'nixos/modules/i18n/input-method/hime.nix')
-rw-r--r--nixos/modules/i18n/input-method/hime.nix18
1 files changed, 2 insertions, 16 deletions
diff --git a/nixos/modules/i18n/input-method/hime.nix b/nixos/modules/i18n/input-method/hime.nix
index a1b346a0f84..8482130db3e 100644
--- a/nixos/modules/i18n/input-method/hime.nix
+++ b/nixos/modules/i18n/input-method/hime.nix
@@ -1,23 +1,9 @@
-{ config, pkgs, ... }:
+{ config, pkgs, lib, ... }:
 
 with lib;
 {
-  options = {
-    i18n.inputMethod.hime = {
-      enableChewing = mkOption {
-        type    =  with types; nullOr bool;
-        default = null;
-        description = "enable chewing input method";
-      };
-      enableAnthy = mkOption {
-        type    =  with types; nullOr bool;
-        default = null;
-        description = "enable anthy input method";
-      };
-    };
-  };
-
   config = mkIf (config.i18n.inputMethod.enabled == "hime") {
+    i18n.inputMethod.package = pkgs.hime;
     environment.variables = {
       GTK_IM_MODULE = "hime";
       QT_IM_MODULE  = "hime";