nixos-config/modules/fonts.nix

20 lines
426 B
Nix

{ pkgs, ... }: {
fonts = {
fontconfig = {
enable = true;
antialias = true;
cache32Bit = true;
defaultFonts = {
monospace = [ "Fira Code" "DejaVu Sans Mono" ];
sansSerif = [ "DejaVu Sans" ];
serif = [ "DejaVu Serif" ];
};
};
enableDefaultPackages = true;
fontDir.enable = true;
packages = with pkgs; [
dejavu_fonts
fira-code
];
};
}