From 5dca47829118881fb3a26b74d8549255adff60c2 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Sun, 2 Jun 2024 16:31:08 +0200 Subject: [PATCH] fcitx: use declarative config --- hosts/common.nix | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/hosts/common.nix b/hosts/common.nix index 95fe8fe..70a8cae 100644 --- a/hosts/common.nix +++ b/hosts/common.nix @@ -95,9 +95,33 @@ in { enabled = "fcitx5"; fcitx5.addons = with pkgs; [ fcitx5-mozc - # fcitx5-gtk + fcitx5-gtk # fcitx5-chinese-addons ]; + + fcitx5.ignoreUserConfig = true; + fcitx5.settings.inputMethod = { + "Groups/0" = { + "Name" = "Default"; + "Default Layout" = "ch"; + "DefaultIM" = "mozc"; + }; + "Groups/0/Items/0" = { + "Name" = "keybord-us"; + "Layout" = null; + }; + "Groups/0/Items/1" = { + "Name" = "keybord-no"; + "Layout" = null; + }; + "Groups/0/Items/2" = { + "Name" = "mozc"; + "Layout" = null; + }; + "GroupOrder" = { + "0" = "Default"; + }; + }; }; };