switch to fcitx

This commit is contained in:
Charlotte 🦝 Delenk 2022-06-14 12:50:10 +01:00
parent af6e4c1fa8
commit d84afff283
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
4 changed files with 24 additions and 15 deletions

View file

@ -42,12 +42,12 @@ in {
</match>
</fontconfig>
'';
environment.sessionVariables = {
GTK_IM_MODULE = "ibus";
QT_IM_MODULE = "ibus";
XMODIFIERS = "@im=ibus";
GLFW_IM_MODULE = "ibus";
GTK_IM_MODULE = "fcitx";
QT_IM_MODULE = "fcitx";
XMODIFIERS = "@im=fcitx";
GLFW_IM_MODULE = "fcitx";
};
time.timeZone = "Etc/GMT-1"; # Confusing naming, it's 1 hour east of GMT
@ -84,16 +84,6 @@ in {
inherit args;
};
i18n.inputMethod = {
enabled = "ibus";
ibus.engines = with pkgs.ibus-engines; [
mozc
table
table-others
uniemoji
(pkgs.callPackage ../packages/ibus-tp.nix {})
];
};
# For syncthing
networking.firewall.allowedTCPPorts = [22000];
networking.firewall.allowedUDPPorts = [22000];

View file

@ -31,6 +31,7 @@
../programs/misc.nix
../programs/mail.nix
../programs/kitty.nix
../programs/fcitx.nix
]
else []
);

10
config/programs/fcitx.nix Normal file
View file

@ -0,0 +1,10 @@
{pkgs, ...}: {
i18n.inputMethod = {
enabled = "fcitx5";
fcitx5.addons = with pkgs; [
fcitx5-mozc
fcitx5-table-extra
fcitx5-table-other
];
};
}

View file

@ -120,6 +120,14 @@ in {
../../extra/kitty.patch
];
});
fcitx5-table-other = prev.fcitx5-table-other.overrideAttrs (old: {
src = prev.fetchFromGitHub {
owner = "pontaoski";
repo = "fcitx5-table-other";
rev = "254c0aed99fd105120521629d177636ea043bf59";
sha256 = "sha256-iYFBlrHTFyesHNEOeI98DbmXSbRHVd+avmtN7Un0eok=";
};
});
})
];
}