nixos/suites/i18n: update deprecated attributes

This commit is contained in:
Gabriel Arazas 2024-10-02 17:08:07 +08:00
parent e04af9e41a
commit 68300be264
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360

View File

@ -46,9 +46,13 @@ in
]; ];
} }
(lib.mkIf (cfg.setup != null) {
i18n.inputMethod.enable = true;
})
(lib.mkIf (cfg.setup == "ibus") { (lib.mkIf (cfg.setup == "ibus") {
i18n.inputMethod = { i18n.inputMethod = {
enabled = "ibus"; type = "ibus";
ibus.engines = with pkgs.ibus-engines; [ ibus.engines = with pkgs.ibus-engines; [
mozc mozc
rime rime
@ -63,7 +67,7 @@ in
(lib.mkIf (cfg.setup == "fcitx5") { (lib.mkIf (cfg.setup == "fcitx5") {
i18n.inputMethod = { i18n.inputMethod = {
enabled = "fcitx5"; type = "fcitx5";
fcitx5.addons = with pkgs; [ fcitx5.addons = with pkgs; [
fcitx5-lua fcitx5-lua
fcitx5-mozc fcitx5-mozc