grimm-nixos-laptop/common/graphics/fonts.nix

31 lines
554 B
Nix
Raw Normal View History

2024-04-30 12:32:03 +02:00
{
2024-05-07 23:31:41 +02:00
lib,
pkgs,
config,
...
}:
2024-05-11 22:55:59 +02:00
let
inherit (config.grimmShared) enable graphical;
in
2024-05-07 23:31:41 +02:00
{
2024-05-11 22:55:59 +02:00
config = lib.mkIf (enable && graphical) {
fonts = {
packages = with pkgs; [
noto-fonts
noto-fonts-cjk
font-awesome
2024-05-29 09:47:17 +02:00
# noto-fonts-emoji
2024-05-25 23:14:08 +02:00
noto-fonts-monochrome-emoji
2024-05-11 22:55:59 +02:00
roboto
liberation_ttf
2024-05-25 23:14:08 +02:00
nerdfonts
2024-05-11 22:55:59 +02:00
];
2024-04-30 12:32:03 +02:00
2024-05-11 22:55:59 +02:00
fontDir.enable = true;
2024-04-30 12:32:03 +02:00
};
2024-05-11 22:55:59 +02:00
environment.sessionVariables = {
FREETYPE_PROPERTIES = "cff:no-stem-darkening=0 autofitter:no-stem-darkening=0";
};
};
2024-04-30 12:32:03 +02:00
}