From 09db4e94cdf5a4ce9198410fb8110c7b2a70f14c Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Sun, 2 Nov 2025 23:11:12 +0100 Subject: [PATCH] add input methods to deck --- hosts/nixos/deck/system.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/hosts/nixos/deck/system.nix b/hosts/nixos/deck/system.nix index 8e75026..c0cfb4a 100644 --- a/hosts/nixos/deck/system.nix +++ b/hosts/nixos/deck/system.nix @@ -42,6 +42,25 @@ }; }; + # Input method configuration + i18n.inputMethod = { + enable = true; + type = "ibus"; + ibus.engines = with pkgs.ibus-engines; [ + libpinyin # Chinese Simplified Pinyin + mozc # Japanese (Romaji) + ]; + }; + + # Prevent automatic suspend on AC power (GNOME power settings) + programs.dconf.profiles.user.databases = [{ + settings = { + "org/gnome/settings-daemon/plugins/power" = { + sleep-inactive-ac-type = "nothing"; + }; + }; + }]; + # Hardware support for Steam Deck (AMD APU) hardware = { enableRedistributableFirmware = true;