2023-05-18 22:29:52 +02:00
|
|
|
{ config, pkgs, lib, materusPkgs, ... }:
|
|
|
|
let
|
|
|
|
packages = config.materus.profile.packages;
|
|
|
|
cfg = config.materus.profile.fonts;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.materus.profile.fonts.enable = materusPkgs.lib.mkBoolOpt false "Enable materus font settings for OS";
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
|
|
|
|
fonts.fonts = packages.list.fonts ++ packages.list.moreFonts;
|
2023-05-23 00:11:56 +02:00
|
|
|
fonts.enableDefaultFonts = lib.mkForce true;
|
2023-05-18 22:29:52 +02:00
|
|
|
|
2023-05-23 00:11:56 +02:00
|
|
|
fonts.fontconfig.enable = lib.mkForce true;
|
|
|
|
fonts.fontconfig.cache32Bit = lib.mkForce true;
|
2023-05-18 22:29:52 +02:00
|
|
|
|
2023-05-23 00:11:56 +02:00
|
|
|
fonts.fontconfig.defaultFonts.sansSerif = [ "Noto Sans" "DejaVu Sans" "WenQuanYi Zen Hei" "Noto Color Emoji" ];
|
|
|
|
fonts.fontconfig.defaultFonts.serif = [ "Noto Serif" "DejaVu Serif" "WenQuanYi Zen Hei" "Noto Color Emoji" ];
|
|
|
|
fonts.fontconfig.defaultFonts.emoji = [ "Noto Color Emoji" "OpenMoji Color" ];
|
|
|
|
fonts.fontconfig.defaultFonts.monospace = [ "FiraCode Nerd Font Mono" "Noto Sans Mono" "WenQuanYi Zen Hei Mono" ];
|
2023-05-18 22:29:52 +02:00
|
|
|
|
2023-05-23 00:11:56 +02:00
|
|
|
fonts.fontDir.enable = lib.mkForce true;
|
2023-05-18 22:29:52 +02:00
|
|
|
};
|
|
|
|
}
|