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 + ]; + }; + }; +}