dotfiles/nixos/fonts.nix

45 lines
970 B
Nix
Raw Permalink Normal View History

{ pkgs, makeEnable, config, ... }:
2024-09-26 14:15:27 -06:00
makeEnable config "myModules.fonts" true {
2021-07-10 15:28:43 -06:00
# Enable the gtk icon cache
gtk.iconCache.enable = true;
nixpkgs.config.joypixels.acceptLicense = true;
2021-07-10 15:28:43 -06:00
fonts = {
packages = with pkgs; [
2023-07-28 11:17:08 -06:00
cascadia-code
2021-07-10 15:28:43 -06:00
dejavu_fonts
2021-09-29 19:33:28 -06:00
emacs-all-the-icons-fonts
joypixels
2021-07-12 20:12:07 -06:00
fira-code
2021-07-10 15:28:43 -06:00
fira-mono
2022-04-04 15:51:14 -06:00
font-awesome
2023-08-08 00:27:29 -06:00
2021-07-10 15:28:43 -06:00
noto-fonts-emoji
roboto
source-code-pro
source-sans-pro
source-serif-pro
2021-07-12 16:44:43 -06:00
twemoji-color-font
2023-08-08 00:27:29 -06:00
(nerdfonts.override { fonts = [
"JetBrainsMono"
"FantasqueSansMono"
"Iosevka"
"VictorMono"
"SourceCodePro"
]; })
2021-07-10 15:28:43 -06:00
];
fontconfig = {
hinting.autohint = true;
antialias = true;
2021-07-10 15:28:43 -06:00
allowBitmaps = true;
useEmbeddedBitmaps = true;
defaultFonts = {
2021-07-19 19:38:18 -06:00
monospace = [ "Source Code Pro" ];
2021-07-10 15:28:43 -06:00
sansSerif = [ "Roboto" ];
serif = [ "Source Serif Pro" ];
};
};
};
}