NixOS/system/modules/font.nix
Tigor Hutasuhut df38983ef5 nixos: update to 24.11
Notes:

- Hyprland now uses the Nixpkgs version to minimize building.
- Java is broken on build, disabled all java apps for now.
2024-11-24 11:02:56 +07:00

44 lines
940 B
Nix

{ pkgs, ... }:
{
fonts = {
packages = with pkgs; [
# icon fonts
material-design-icons
# normal fonts
noto-fonts
noto-fonts-cjk-sans
noto-fonts-emoji
noto-fonts-color-emoji
nerdfonts
# (nerdfonts.override {
# fonts = [ "FiraCode" "JetBrainsMono" "Iosevka" ];
# })
];
# use fonts specified by user rather than default ones
enableDefaultPackages = false;
# user defined fonts
# the reason there's Noto Color Emoji everywhere is to override DejaVu's
# B&W emojis that would sometimes show instead of some Color emojis
fontconfig.defaultFonts = {
serif = [
"Noto Serif"
"Noto Color Emoji"
];
sansSerif = [
"Noto Sans"
"Noto Color Emoji"
];
monospace = [
"JetBrainsMono Nerd Font"
"Noto Color Emoji"
];
emoji = [ "Noto Color Emoji" ];
};
};
}