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,25 +16,28 @@ 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 =
with pkgs;
lib.mkIf config.nixowos.allowAddingPackages [
fcitx5-mozc # japanese module fcitx5-mozc # japanese module
fcitx5-gtk fcitx5-gtk
]; ];
settings.globalOptions = { settings = lib.mkDefault {
globalOptions = {
# also require "alt" for triggering IME # also require "alt" for triggering IME
# this is to avoid conflicts with other apps/games # this is to avoid conflicts with other apps/games
"Hotkey/TriggerKeys"."0" = "Control+Alt+space"; "Hotkey/TriggerKeys"."0" = "Control+Alt+space";
}; };
# basic configuration for switching between normal mode and mozc # basic configuration for switching between normal mode and mozc
settings.inputMethod = { inputMethod = {
"Groups/0" = { "Groups/0" = {
Name = "Default"; Name = "Default";
"Default Layout" = "us"; "Default Layout" = "us";
@ -54,8 +57,8 @@ in
GroupOrder."0" = "Default"; GroupOrder."0" = "Default";
}; };
settings.addons.classicui.globalSection.Theme = addons.classicui.globalSection.Theme = lib.mkIf config.services.desktopManager.plasma6.enable "plasma";
lib.mkIf config.services.desktopManager.plasma6.enable "plasma"; };
}; };
}; };
}; };