From e01d95365695fdf42d0bf825b46db95fa11d10f3 Mon Sep 17 00:00:00 2001 From: agryphus Date: Sun, 28 Jan 2024 22:51:32 -0500 Subject: [PATCH] Add fcitx5 --- .config/nixos/profiles/fcitx.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .config/nixos/profiles/fcitx.nix diff --git a/.config/nixos/profiles/fcitx.nix b/.config/nixos/profiles/fcitx.nix new file mode 100644 index 0000000..f675d4a --- /dev/null +++ b/.config/nixos/profiles/fcitx.nix @@ -0,0 +1,22 @@ +{ config, pkgs, ... }: + +{ + i18n = { + inputMethod = { + # Have to install fcitx5 through here so that the binary is patched to be able to see the addons. + # If also installed through system packages, the binary without addonds will take precedence. + enabled = "fcitx5"; + fcitx5.addons = with pkgs; [ + fcitx5-configtool + fcitx5-rime + fcitx5-chinese-addons + ]; + }; + }; + + fonts.packages = with pkgs; [ + source-han-sans + source-han-serif + ]; +} +