blob: 84705680884ae517f340abd96783a326991e6934 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
{
config,
pkgs,
lib,
...
}: let
cfg = config.desktop.fonts;
inherit (lib) mkEnableOption mkIf;
in {
options.desktop.fonts.enable = mkEnableOption "enable default fonts";
config = mkIf cfg.enable {
fonts = {
enableDefaultFonts = true;
fonts = with pkgs; [
corefonts
fira-code
(nerdfonts.override {fonts = ["FiraCode"];})
noto-fonts
noto-fonts-extra
noto-fonts-emoji
noto-fonts-cjk-sans
];
fontconfig.defaultFonts = {
serif = ["Noto Serif"];
sansSerif = ["Noto Sans"];
emoji = ["Noto Color Emoji"];
monospace = ["Fira Code"];
};
};
};
}
|