From d71be6d7d9e964240cbca2dd342bc68fa2861f63 Mon Sep 17 00:00:00 2001 From: kenji Date: Thu, 1 Jan 2026 11:26:09 -0600 Subject: [PATCH] add(nixos): input method --- apps/hyprland/hypr/exec.nix | 1 + modules/nixos/default.nix | 1 + modules/nixos/input-method.nix | 13 +++++++++++++ 3 files changed, 15 insertions(+) create mode 100644 modules/nixos/input-method.nix diff --git a/apps/hyprland/hypr/exec.nix b/apps/hyprland/hypr/exec.nix index 709700e..4fa0014 100644 --- a/apps/hyprland/hypr/exec.nix +++ b/apps/hyprland/hypr/exec.nix @@ -9,6 +9,7 @@ ]; exec-once = [ "hyprpm reload -n" + "fcitx5 -d --replace" "[workspace special:preload silent] uwsm app -- firefox" "[workspace special:preload silent] uwsm app -- firefox -P YouTube" "[workspace special:preload silent] uwsm app -- xdg-terminal-exec" diff --git a/modules/nixos/default.nix b/modules/nixos/default.nix index 7beb9a1..eff7e7f 100644 --- a/modules/nixos/default.nix +++ b/modules/nixos/default.nix @@ -15,6 +15,7 @@ ./security.nix ./variables.nix ./kernel.nix + ./input-method.nix ]; environment.systemPackages = with pkgs; [ # FIXME: must be on their own app diff --git a/modules/nixos/input-method.nix b/modules/nixos/input-method.nix new file mode 100644 index 0000000..7fde2d2 --- /dev/null +++ b/modules/nixos/input-method.nix @@ -0,0 +1,13 @@ +{pkgs, ...}: { + i18n.inputMethod = { + enable = true; + type = "fcitx5"; + fcitx5 = { + waylandFrontend = true; + addons = with pkgs; [ + fcitx5-mozc + fcitx5-gtk + ]; + }; + }; +}