add input method to thinkpad

This commit is contained in:
Yan Lin 2025-10-20 18:14:24 +02:00
parent aa8277959d
commit 64955d8ec0
2 changed files with 15 additions and 2 deletions

View file

@ -157,6 +157,15 @@ in
options = ""; options = "";
}; };
# Input method configuration
i18n.inputMethod = {
enabled = "ibus";
ibus.engines = with pkgs.ibus-engines; [
libpinyin # Chinese Simplified Pinyin
mozc # Japanese (Romaji)
];
};
# Exclude unwanted GNOME default packages # Exclude unwanted GNOME default packages
environment.gnome.excludePackages = with pkgs; [ environment.gnome.excludePackages = with pkgs; [
gnome-tour gnome-tour

View file

@ -32,9 +32,13 @@ in
picture-options = "scaled"; picture-options = "scaled";
}; };
# Input sources - US English # Input sources - US English, Chinese Pinyin, Japanese
"org/gnome/desktop/input-sources" = { "org/gnome/desktop/input-sources" = {
sources = [ (mkTuple [ "xkb" "us" ]) ]; sources = [
(mkTuple [ "xkb" "us" ])
(mkTuple [ "ibus" "libpinyin" ])
(mkTuple [ "ibus" "mozc-jp" ])
];
xkb-options = [ "" ]; xkb-options = [ "" ];
}; };