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