diff --git a/README.md b/README.md index 101205f..8d75745 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,8 @@ home-manager switch --flake github:Logan-Lin/nix-config#yanlin │ └── macos-defaults.nix # macOS system preferences and customizations ├── config/ # Configuration files │ ├── p10k.zsh # Powerlevel10k theme configuration -│ └── projects.nix # Project shortcuts configuration +│ ├── projects.nix # Project shortcuts configuration +│ └── fonts.nix # Font packages and configuration └── scripts/ # Utility scripts └── project-launcher.sh # Dynamic project launcher with window configuration ``` @@ -399,6 +400,7 @@ ncdu -x # Stay on same filesystem (don't cross mount points) The configuration includes carefully selected programming fonts with icon patches: +- **DejaVu Fonts**: Complete font family with excellent Unicode coverage and readability - **Fira Code**: Coding font with programming ligatures and clean aesthetics - **JetBrains Mono**: Modern monospace font designed specifically for developers diff --git a/config/fonts.nix b/config/fonts.nix new file mode 100644 index 0000000..87f6ae0 --- /dev/null +++ b/config/fonts.nix @@ -0,0 +1,16 @@ +{ pkgs, ... }: + +{ + # 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 + ]; + + # Enable font configuration + fonts.fontconfig.enable = true; +} \ No newline at end of file diff --git a/flake.nix b/flake.nix index cc3763a..126ece1 100644 --- a/flake.nix +++ b/flake.nix @@ -58,6 +58,7 @@ ./modules/rsync.nix ./modules/btop.nix ./modules/firefox.nix + ./config/fonts.nix ]; home.username = "yanlin"; @@ -76,8 +77,6 @@ openssh papis claude-code.packages.aarch64-darwin.claude-code - nerd-fonts.fira-code - nerd-fonts.jetbrains-mono lazygit ncdu git-credential-oauth @@ -85,9 +84,6 @@ gnumake zoxide ]; - - - fonts.fontconfig.enable = true; programs.home-manager.enable = true;