aboutsummaryrefslogtreecommitdiffstats
path: root/modules/fonts/default.nix
blob: eee825d6030ada2008ceed3ce7a2f72cbc3c99e6 (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
{ lib, config, pkgs, ... }:

{
	options.fonts = {
		normal = lib.mkOption {
			type = lib.types.str;
			description = "Default normal font name.";
		};

		bold = lib.mkOption {
			type = lib.types.str;
			description = "Default bold font name.";
			default = config.fonts.normal;
		};

		italic = lib.mkOption {
			type = lib.types.str;
			description = "Default italic font name.";
			default = config.fonts.normal;
		};

		size = lib.mkOption {
			type = lib.types.int;
			description = "Default font size.";
			default = 16;
		};
	};

	config = {
		fonts.normal = lib.mkDefault "Fira Code Nerd Font";

		home.packages = with pkgs; [
			nerd-fonts.fira-code
		];
	};
}