简化stable/unstable切换的方式;增加兼容性代码,根据版本引用
This commit is contained in:
@@ -1,16 +1,21 @@
|
||||
# 输入法配置模块
|
||||
{ config, lib, pkgs, ... }: {
|
||||
|
||||
i18n.inputMethod = {
|
||||
i18n.inputMethod = (if lib.versionAtLeast config.home.stateVersion "25.05" then {
|
||||
enable = true;
|
||||
type = "fcitx5";
|
||||
} else {
|
||||
enabled = "fcitx5";
|
||||
}) // {
|
||||
fcitx5 = {
|
||||
addons = with pkgs; [
|
||||
fcitx5-gtk
|
||||
fcitx5-chinese-addons
|
||||
fcitx5-nord
|
||||
];
|
||||
waylandFrontend = true; # available in home-manager-25.05
|
||||
};
|
||||
} // (lib.optionalAttrs (lib.versionAtLeast config.home.stateVersion "25.05") {
|
||||
waylandFrontend = true;
|
||||
});
|
||||
};
|
||||
|
||||
gtk = {
|
||||
|
||||
Reference in New Issue
Block a user