switch to fcitx
This commit is contained in:
parent
af6e4c1fa8
commit
d84afff283
4 changed files with 24 additions and 15 deletions
|
@ -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];
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
../programs/misc.nix
|
||||
../programs/mail.nix
|
||||
../programs/kitty.nix
|
||||
../programs/fcitx.nix
|
||||
]
|
||||
else []
|
||||
);
|
||||
|
|
10
config/programs/fcitx.nix
Normal file
10
config/programs/fcitx.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{pkgs, ...}: {
|
||||
i18n.inputMethod = {
|
||||
enabled = "fcitx5";
|
||||
fcitx5.addons = with pkgs; [
|
||||
fcitx5-mozc
|
||||
fcitx5-table-extra
|
||||
fcitx5-table-other
|
||||
];
|
||||
};
|
||||
}
|
|
@ -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=";
|
||||
};
|
||||
});
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue