fix(defaults/jp): fix fcitx.addons not applying
This commit is contained in:
parent
f46376e389
commit
82694edc4f
1 changed files with 33 additions and 30 deletions
|
|
@ -16,46 +16,49 @@ 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; [
|
||||
fcitx5-mozc # japanese module
|
||||
fcitx5-gtk
|
||||
];
|
||||
waylandFrontend = lib.mkDefault true;
|
||||
addons =
|
||||
with pkgs;
|
||||
lib.mkIf config.nixowos.allowAddingPackages [
|
||||
fcitx5-mozc # japanese module
|
||||
fcitx5-gtk
|
||||
];
|
||||
|
||||
settings.globalOptions = {
|
||||
# also require "alt" for triggering IME
|
||||
# this is to avoid conflicts with other apps/games
|
||||
"Hotkey/TriggerKeys"."0" = "Control+Alt+space";
|
||||
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
|
||||
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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue