nixos-config/modules/fonts.nix
2023-12-01 16:59:02 +01:00

22 lines
442 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; [
nerdfonts
dejavu_fonts
fira-code
];
};
}