From cec9f7acd5e5e365563212c5144394f71dd90b27 Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Sun, 3 Dec 2023 02:52:28 +0300 Subject: 2023-12-03 --- modules/nixos/common/locale.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'modules/nixos/common') diff --git a/modules/nixos/common/locale.nix b/modules/nixos/common/locale.nix index 09e0686..9d73af4 100644 --- a/modules/nixos/common/locale.nix +++ b/modules/nixos/common/locale.nix @@ -23,6 +23,31 @@ with lib; { }; }; + hm.xdg.configFile."fcitx5/profile".text = generators.toINI {} { + "Groups/0" = { + Name = "Default"; + DefaultIM = "mozc"; + "Default Layout" = "us"; + }; + + "Groups/0/Items/0" = { + Name = "keyboard-us"; + Layout = ""; + }; + + "Groups/0/Items/1" = { + Name = "mozc"; + Layout = "us"; + }; + + "Groups/0/Items/2" = { + Name = "keyboard-ru-phonetic"; + Layout = ""; + }; + + GroupOrder."0" = "Default"; + }; + services.xserver = { layout = "us"; xkbOptions = concatStringsSep "," [ -- cgit 1.4.1