mirror of
https://github.com/zoriya/flake.git
synced 2026-08-15 18:43:42 +00:00
60 lines
1.1 KiB
Nix
60 lines
1.1 KiB
Nix
{pkgs, ...}: {
|
|
i18n.inputMethod = {
|
|
enable = true;
|
|
type = "fcitx5";
|
|
fcitx5 = {
|
|
addons = with pkgs; [
|
|
fcitx5-mozc
|
|
fcitx5-gtk
|
|
];
|
|
waylandFrontend = true;
|
|
};
|
|
};
|
|
systemd.user.services.fcitx5-daemon = {
|
|
Unit = {
|
|
After = ["graphical-session.target"];
|
|
};
|
|
};
|
|
|
|
xdg.configFile."fcitx5/config" = {
|
|
force = true;
|
|
text = ''
|
|
[Hotkey/TriggerKeys]
|
|
0=Super+a
|
|
|
|
[Behavior]
|
|
ShowInputMethodInformation=False
|
|
CompactInputMethodInformation=False
|
|
ShowFirstInputMethodInformation=False
|
|
'';
|
|
};
|
|
xdg.configFile."fcitx5/profile" = {
|
|
force = true;
|
|
text = ''
|
|
[Groups/0]
|
|
Name=Default
|
|
Default Layout=us
|
|
DefaultIM=mozc
|
|
|
|
[Groups/0/Items/0]
|
|
Name=keyboard-us
|
|
Layout=
|
|
|
|
[Groups/0/Items/1]
|
|
Name=mozc
|
|
Layout=
|
|
|
|
[GroupOrder]
|
|
0=Default
|
|
'';
|
|
};
|
|
|
|
xdg.dataFile."fcitx5/themes/catppuccin-latte-pink".source = "${pkgs.catppuccin-fcitx5}/share/fcitx5/themes/catppuccin-latte-pink";
|
|
xdg.configFile."fcitx5/conf/classicui.conf" = {
|
|
force = true;
|
|
text = ''
|
|
Theme=catppuccin-latte-pink
|
|
'';
|
|
};
|
|
}
|