rearrange font module
This commit is contained in:
parent
c8e9d66f51
commit
a8572dc3a3
6 changed files with 4 additions and 4 deletions
49
modules/font/home.nix
Normal file
49
modules/font/home.nix
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
# Custom fonts from local files
|
||||
customFonts = pkgs.stdenvNoCC.mkDerivation {
|
||||
name = "custom-fonts";
|
||||
src = ./fonts;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/fonts
|
||||
find $src -type f \( -iname "*.ttf" -o -iname "*.otf" -o -iname "*.ttc" -o -iname "*.woff" -o -iname "*.woff2" \) -exec cp {} $out/share/fonts/ \;
|
||||
'';
|
||||
};
|
||||
in
|
||||
{
|
||||
# Font packages
|
||||
home.packages = with pkgs; [
|
||||
# DejaVu font family
|
||||
dejavu_fonts
|
||||
|
||||
# Nerd Fonts with programming ligatures and icon support
|
||||
nerd-fonts.fira-code
|
||||
nerd-fonts.jetbrains-mono
|
||||
|
||||
# Ubuntu font family
|
||||
ubuntu-classic
|
||||
|
||||
# CJK fonts for proper Chinese/Japanese/Korean character display
|
||||
noto-fonts-cjk-sans # Comprehensive CJK support
|
||||
noto-fonts-cjk-serif # Serif CJK text support
|
||||
source-han-sans # High-quality CJK font alternative
|
||||
|
||||
# Traditional Chinese font styles
|
||||
arphic-ukai # KaiTi style (楷体) - brush stroke style
|
||||
arphic-uming # MingTi/Song style (宋体) - serif style
|
||||
wqy_zenhei # WenQuanYi Zen Hei - popular sans-serif with good coverage
|
||||
|
||||
# Japanese fonts
|
||||
ipafont # IPA Gothic & Mincho - professional Japanese fonts (ゴシック体・明朝体)
|
||||
mplus-outline-fonts.githubRelease # M+ Family - modern Japanese font with multiple weights
|
||||
kochi-substitute # Kochi fonts - legacy MS Gothic/Mincho replacement
|
||||
|
||||
# Custom fonts from config/fonts directory
|
||||
customFonts
|
||||
];
|
||||
|
||||
# Enable font configuration
|
||||
fonts.fontconfig.enable = true;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue