blob: 212f88c70663b701936880223e8c3d23389ca0a7 (
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
34
35
36
37
38
|
{
config,
lib,
pkgs,
...
}: let
cfg = config.desktop.fonts;
enable = config.desktop.enable && cfg.enable;
in {
options.desktop.fonts = {
enable = lib.mkEnableOption "desktop fonts" // {default = true;};
};
config = lib.mkIf enable {
fonts = {
enableDefaultPackages = true;
packages = with pkgs; [
(nerdfonts.override {fonts = ["FiraCode" "Hack" "Noto"];})
noto-fonts
noto-fonts-extra
noto-fonts-color-emoji
noto-fonts-cjk-sans
];
fontconfig = {
enable = true;
cache32Bit = lib.mkDefault true;
defaultFonts = lib.mkDefault {
serif = ["Noto Serif"];
sansSerif = ["Noto Sans"];
emoji = ["Noto Color Emoji"];
monospace = ["Noto Sans Mono"];
};
};
};
};
}
|