This repository has been archived on 2024-05-02. You can view files and clone it, but cannot push or open issues or pull requests.
nixos-flake/modules/desktop/fonts/default.nix

34 lines
878 B
Nix

{ pkgs, ... }: {
fonts = {
enableDefaultPackages = true;
packages = with pkgs; [
roboto
roboto-slab
noto-fonts
noto-fonts-emoji
sarasa-gothic
(nerdfonts.override { fonts = [ "NerdFontsSymbolsOnly" ]; })
];
fontconfig = {
antialias = true;
allowType1 = false;
allowBitmaps = false;
hinting = {
enable = true;
style = "slight";
autohint = false;
};
subpixel = {
rgba = "rgb";
lcdfilter = "default";
};
defaultFonts = {
emoji = [ "Noto Color Emoji" ];
serif = [ "Roboto Slab" "Noto Serif" "Sarasa Gothic CL" "Symbols Nerd Font" ];
sansSerif = [ "Roboto" "Noto Sans" "Sarasa Gothic CL" "Symbols Nerd Font" ];
monospace = [ "JetBrains Mono" "Sarasa Mono CL" "Symbols Nerd Font Mono" ];
};
};
};
}