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