rearrange font module

This commit is contained in:
Yan Lin 2026-02-11 18:33:00 +01:00
parent c8e9d66f51
commit a8572dc3a3
6 changed files with 4 additions and 4 deletions

View file

@ -17,7 +17,7 @@
../../modules/claude-code.nix
../../modules/tex.nix
../../modules/media/tool.nix
../../modules/fonts.nix
../../modules/font/home.nix
../../modules/aerospace.nix
../../modules/peripheral/home.nix
];

View file

@ -11,7 +11,7 @@
../../modules/lazygit.nix
../../modules/rsync.nix
../../modules/btop.nix
../../modules/fonts.nix
../../modules/font/home.nix
];
home.username = "yanlin";

View file

@ -4,11 +4,11 @@ let
# Custom fonts from local files
customFonts = pkgs.stdenvNoCC.mkDerivation {
name = "custom-fonts";
src = ../config/fonts;
src = ./fonts;
installPhase = ''
mkdir -p $out/share/fonts
find $src -type f \( -name "*.ttf" -o -name "*.otf" -o -name "*.ttc" -o -name "*.woff" -o -name "*.woff2" \) -exec cp {} $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