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 + ]; +} +