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

31 lines
561 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
2024-10-22 22:05:22 +02:00
noto-fonts-cjk-sans
2024-05-11 22:55:59 +02:00
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-08-15 14:59:23 +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
}