init
This commit is contained in:
26
modules/home/fcitx.nix
Normal file
26
modules/home/fcitx.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
# 输入法配置模块
|
||||
{ config, lib, pkgs, ... }: {
|
||||
|
||||
i18n.inputMethod = {
|
||||
enabled = "fcitx5";
|
||||
fcitx5 = {
|
||||
addons = with pkgs; [
|
||||
fcitx5-gtk
|
||||
fcitx5-chinese-addons
|
||||
fcitx5-nord
|
||||
];
|
||||
waylandFrontend = true; # available in home-manager-25.05
|
||||
};
|
||||
};
|
||||
|
||||
gtk = {
|
||||
gtk3.extraConfig = lib.mkOptionDefault {
|
||||
gtk-im-module = "fcitx";
|
||||
};
|
||||
|
||||
gtk4.extraConfig = lib.mkOptionDefault {
|
||||
gtk-im-module = "fcitx";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user