fix(defaults/jp): fix fcitx.addons not applying

This commit is contained in:
Elec3137 2026-04-01 10:33:45 -07:00
commit 82694edc4f

View file

@ -16,46 +16,49 @@ in
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
# for typing in japanese # for typing in japanese
i18n.inputMethod = lib.mkDefault { i18n.inputMethod = {
# set this for the defaults to be realized! # set this for the defaults to be realized!
# enable = true; # enable = true;
type = "fcitx5"; type = lib.mkDefault "fcitx5";
fcitx5 = { fcitx5 = {
waylandFrontend = true; waylandFrontend = lib.mkDefault true;
addons = with pkgs; [ addons =
fcitx5-mozc # japanese module with pkgs;
fcitx5-gtk lib.mkIf config.nixowos.allowAddingPackages [
]; fcitx5-mozc # japanese module
fcitx5-gtk
];
settings.globalOptions = { settings = lib.mkDefault {
# also require "alt" for triggering IME globalOptions = {
# this is to avoid conflicts with other apps/games # also require "alt" for triggering IME
"Hotkey/TriggerKeys"."0" = "Control+Alt+space"; # this is to avoid conflicts with other apps/games
"Hotkey/TriggerKeys"."0" = "Control+Alt+space";
};
# basic configuration for switching between normal mode and mozc
inputMethod = {
"Groups/0" = {
Name = "Default";
"Default Layout" = "us";
DefaultIM = "mozc";
};
"Groups/0/Items/0" = {
Name = "keyboard-us";
Layout = "us";
};
"Groups/0/Items/1" = {
Name = "mozc";
Layout = "us";
};
GroupOrder."0" = "Default";
};
addons.classicui.globalSection.Theme = lib.mkIf config.services.desktopManager.plasma6.enable "plasma";
}; };
# basic configuration for switching between normal mode and mozc
settings.inputMethod = {
"Groups/0" = {
Name = "Default";
"Default Layout" = "us";
DefaultIM = "mozc";
};
"Groups/0/Items/0" = {
Name = "keyboard-us";
Layout = "us";
};
"Groups/0/Items/1" = {
Name = "mozc";
Layout = "us";
};
GroupOrder."0" = "Default";
};
settings.addons.classicui.globalSection.Theme =
lib.mkIf config.services.desktopManager.plasma6.enable "plasma";
}; };
}; };
}; };