nix-conf/system/locale.nix

29 lines
534 B
Nix
Raw Normal View History

2024-12-22 23:46:42 -05:00
{
config,
lib,
pkgs,
...
}: {
2024-10-18 23:42:11 -04:00
i18n.defaultLocale = "en_US.UTF-8";
i18n.supportedLocales = [
"en_US.UTF-8/UTF-8"
"ja_JP.UTF-8/UTF-8"
];
2024-12-22 23:46:42 -05:00
i18n.inputMethod = lib.mkIf config.u.has.graphical {
2024-10-18 23:42:11 -04:00
enable = true;
type = "fcitx5";
fcitx5.addons = with pkgs; [
fcitx5-mozc
fcitx5-gtk
];
};
2024-12-22 23:46:42 -05:00
fonts.packages = with pkgs;
lib.optionals config.u.has.graphical [
noto-fonts
noto-fonts-cjk-sans
source-han-sans
source-han-serif
nerd-fonts.jetbrains-mono
];
2024-10-18 23:42:11 -04:00
}