From 1ffdbf90fb18b2268b6cd2bbd0ff13b87ce78381 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sat, 25 Nov 2023 17:16:54 +0100 Subject: configure japanese input method using fcitx5 --- nixos/common.nix | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) (limited to 'nixos') diff --git a/nixos/common.nix b/nixos/common.nix index 120c816..e319296 100644 --- a/nixos/common.nix +++ b/nixos/common.nix @@ -167,14 +167,35 @@ in }) ]; + # ---- config for japanese (thx functor.tokyo) + fonts.fonts = with pkgs; [ profont symbola - ipafont - hanazono - takao font-awesome + + ipafont + kochi-substitute ]; + fonts.fontconfig.defaultFonts = { + monospace = [ + "DejaVu Sans Mono" + "IPAGothic" + ]; + sansSerif = [ + "DejaVu Sans" + "IPAPGothic" + ]; + serif = [ + "DejaVu Serif" + "IPAPMincho" + ]; + }; + + i18n.inputMethod.enabled = "fcitx5"; + i18n.inputMethod.fcitx5.addons = [ pkgs.fcitx5-mozc ]; + + # ---- environment.systemPackages = with pkgs; [ home-manager -- cgit v1.2.3