about summary refs log tree commit diff stats
path: root/modules/by-name/in
diff options
context:
space:
mode:
Diffstat (limited to 'modules/by-name/in')
-rw-r--r--modules/by-name/in/inputMethod/module.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/by-name/in/inputMethod/module.nix b/modules/by-name/in/inputMethod/module.nix
new file mode 100644
index 00000000..76fcaaee
--- /dev/null
+++ b/modules/by-name/in/inputMethod/module.nix
@@ -0,0 +1,16 @@
+{
+  config,
+  lib,
+  ...
+}: let
+  cfg = config.soispha.services.inputMethod;
+in {
+  options.soispha.services.inputMethod = {
+    enable = lib.mkEnableOption "inputMethod";
+  };
+
+  config.i18n.inputMethod = lib.mkIf cfg.enable {
+    enable = true;
+    type = "ibus";
+  };
+}