nixos-config/profiles/workspace/fonts.nix

36 lines
796 B
Nix

{ pkgs, config, lib, ... }: {
fonts = {
fonts = with pkgs; [
ibm-plex
hasklig
nerdfonts
material-design-icons
material-icons
];
fontconfig = let fonts = config.themes.fonts;
in {
enable = lib.mkForce true;
defaultFonts = {
monospace = [ "${fonts.mono.family} ${toString fonts.mono.size}" ];
sansSerif = [ "${fonts.main.family} ${toString fonts.main.size}" ];
serif = [ "${fonts.serif.family} ${toString fonts.serif.size}" ];
};
};
enableDefaultFonts = true;
};
themes.fonts = {
main = {
family = "IBM Plex Sans";
size = 13;
};
serif = {
family = "IBM Plex Serif";
size = 13;
};
mono = {
family = "IBM Plex Mono";
size = 13;
};
};
}