summaryrefslogtreecommitdiff
path: root/hosts/common/fonts.nix
blob: 78993cfd5e124d9d59333a8c5d0d2850700b4d81 (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
{
	pkgs,
	desktop,
	...
}: let
	gui = desktop != "";
in {
	fonts = {
		enableDefaultFonts = gui;
		fonts =
			if gui
			then
				with pkgs; [
					noto-fonts
					noto-fonts-extra
					noto-fonts-emoji
					noto-fonts-cjk-sans
					fira-code
					(nerdfonts.override {fonts = ["FiraCode"];})
				]
			else [];
		fontconfig.defaultFonts =
			if gui
			then {
				serif = ["Noto Serif"];
				sansSerif = ["Noto Sans"];
				emoji = ["Noto Color Emoji"];
				monospace = ["Fira Code"];
			}
			else {};
	};
}