nixos-config/modules/workspace/fonts.nix

36 lines
796 B
Nix
Raw Normal View History

2021-06-10 19:58:51 +04:00
{ pkgs, config, lib, ... }: {
2020-02-17 17:00:59 +04:00
fonts = {
fonts = with pkgs; [
2020-07-30 17:06:40 +04:00
ibm-plex
2020-02-17 17:00:59 +04:00
hasklig
2020-06-12 18:34:18 +04:00
nerdfonts
2020-02-17 17:00:59 +04:00
material-design-icons
material-icons
];
2021-06-10 19:58:51 +04:00
fontconfig = let fonts = config.themes.fonts;
in {
enable = lib.mkForce true;
2020-02-17 17:00:59 +04:00
defaultFonts = {
2021-06-10 19:58:51 +04:00
monospace = [ "${fonts.mono.family} ${toString fonts.mono.size}" ];
sansSerif = [ "${fonts.main.family} ${toString fonts.main.size}" ];
serif = [ "${fonts.serif.family} ${toString fonts.serif.size}" ];
2020-02-17 17:00:59 +04:00
};
};
enableDefaultFonts = true;
};
2021-06-10 19:58:51 +04:00
themes.fonts = {
main = {
family = "IBM Plex Sans";
size = 13;
};
serif = {
family = "IBM Plex Serif";
size = 13;
};
mono = {
family = "IBM Plex Mono";
size = 13;
};
};
2020-02-17 17:00:59 +04:00
}