japanese font and keyboard

This commit is contained in:
2025-10-27 00:57:32 +09:00
parent 0204b40b66
commit a704196d14
3 changed files with 35 additions and 0 deletions
+4
View File
@@ -3,6 +3,10 @@
nix.settings.experimental-features = [ "nix-command" "flakes" ];
time.timeZone = "Asia/Tokyo";
i18n.defaultLocale = "ja_JP.UTF-8";
services.xserver.xkb.layout = "jp";
services.xserver.xkb.variant = "";
services.xserver.xkb.options = "ctrl:nocaps";
console.keyMap = "jp106";
# common user
users.users.moons = {
+30
View File
@@ -0,0 +1,30 @@
{ pkgs, ... }:
{
fonts = {
packages = (with pkgs;
[
noto-fonts
noto-fonts-cjk-sans
noto-fonts-emoji
terminus_font
cantarell-fonts
font-awesome
]
);
fontDir.enable = true;
fontconfig = {
defaultFonts = {
serif = [
"Noto Serif CJK JP"
"Noto Color Emoji"
];
sansSerif =[
"Noto Sans CJK JP"
"Noto Clor Emoji"
];
emoji = ["Noto Color Emoji"];
};
};
};
}