From 31edf217feab1056c34dd2b2902950b14d9819ea Mon Sep 17 00:00:00 2001 From: Nico Date: Wed, 16 Jul 2025 21:58:35 +1000 Subject: [PATCH] fcitx5: init with japanese input --- flake.nix | 1 + modules/desktop/japanese-input.nix | 28 ++++++++++++++++++++++++++++ stow/.config/hypr/hyprland.conf | 2 +- 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 modules/desktop/japanese-input.nix diff --git a/flake.nix b/flake.nix index eb11477..daf7782 100644 --- a/flake.nix +++ b/flake.nix @@ -24,6 +24,7 @@ ./modules/desktop/default.nix ./modules/desktop/de/kde.nix ./modules/desktop/de/hyprland.nix + ./modules/desktop/japanese-input.nix ./modules/desktop/login/sddm.nix ./modules/browser/firefox.nix ./modules/browser/chromium.nix diff --git a/modules/desktop/japanese-input.nix b/modules/desktop/japanese-input.nix new file mode 100644 index 0000000..44f9daa --- /dev/null +++ b/modules/desktop/japanese-input.nix @@ -0,0 +1,28 @@ +{ config, pkgs, ... }: + +{ + i18n.inputMethod = { + enable = true; + type = "fcitx5"; + fcitx5.waylandFrontend = true; + fcitx5.addons = with pkgs; [ + fcitx5-mozc + fcitx5-gtk + ]; + }; + + i18n.inputMethod.fcitx5.settings.inputMethod = { + GroupOrder."0" = "Default"; + "Groups/0" = { + Name = "Default"; + "Default Layout" = "au"; + DefaultIM = "mozc"; + }; + "Groups/0/Items/0".Name = "keyboard-au"; + "Groups/0/Items/1".Name = "mozc"; + }; + + environment.systemPackages = with pkgs; [ + kdePackages.fcitx5-configtool + ]; +} diff --git a/stow/.config/hypr/hyprland.conf b/stow/.config/hypr/hyprland.conf index cc63535..b1cfc5f 100755 --- a/stow/.config/hypr/hyprland.conf +++ b/stow/.config/hypr/hyprland.conf @@ -21,7 +21,7 @@ exec-once = walker --gapplication-service exec-once = opensnitch-ui exec-once = systemctl start --user polkit-gnome-authentication-agent-1.service - +exec-once = fcitx5 & exec-once = steam -silent & exec-once = 1password --silent &