diff --git a/configuration.nix b/configuration.nix index 194676b..8a8bdf1 100644 --- a/configuration.nix +++ b/configuration.nix @@ -55,6 +55,13 @@ LC_TIME = "en_US.utf8"; }; + # Japanese IME. + i18n.inputMethod = { + enabled = "fcitx5"; + fcitx5.waylandFrontend = true; + fcitx5.addons = with pkgs; [fcitx5-mozc fcitx5-gtk]; + }; + # Enable sound with pipewire. security.rtkit.enable = true; services.pipewire = { diff --git a/modules/desktop/hyprland/config.nix b/modules/desktop/hyprland/config.nix index 5528d95..c3c81ab 100644 --- a/modules/desktop/hyprland/config.nix +++ b/modules/desktop/hyprland/config.nix @@ -270,6 +270,9 @@ in { # Change background. bind=SUPERSHIFT,K,exec,killall -q swaybg -9; swaybg -i "$(find ~/Pictures/Wallpapers -type f | shuf -n 1)" -m fill + # Japanese IME. + exec-once=fcitx5 + # Start some applications in the background. exec-once=~/.config/hypr/autostart.sh '';