summaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-11-25 17:16:54 +0100
committerAlex Auvolat <alex@adnab.me>2023-11-25 17:16:54 +0100
commit1ffdbf90fb18b2268b6cd2bbd0ff13b87ce78381 (patch)
tree32219aea9790ed900a676789d88443c906a58a5f /nixos
parent4221ef11fe8b0993f420954a76e2c37db2b1df56 (diff)
downloaduser-config-1ffdbf90fb18b2268b6cd2bbd0ff13b87ce78381.tar.gz
user-config-1ffdbf90fb18b2268b6cd2bbd0ff13b87ce78381.zip
configure japanese input method using fcitx5
Diffstat (limited to 'nixos')
-rw-r--r--nixos/common.nix27
1 files changed, 24 insertions, 3 deletions
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