aboutsummaryrefslogtreecommitdiffstats
path: root/alacritty/default.nix
blob: eb3825e0dd947bd6c4c68be68c3aec8c64e1ccb3 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{ pkgs, config, ... }:

{
	programs.alacritty.enable = true;

	programs.alacritty.settings = {
		window = {
			opacity = 1.0;
			padding = {
				x = 4;
				y = 0;
			};
			decorations = "full";
		};

		font = {
			normal = {
				family = "Fira Code Nerd Font";
				style = "Retina";
			};
			bold = {
				family = "Fira Code Nerd Font";
				style = "Bold";
			};
			italic = {
				family = "Fira Code Nerd Font";
			};
			size = 16.0;
		};

		colors = with config.lib.stylix.colors; {
			primary = {
				background = "0x${base00}";
				foreground = "0x${base05}";
			};
			normal = {
				black = "0x${base00}";
				red = "0x${base08}";
				green = "0x${base0B}";
				yellow = "0x${base0A}";
				blue = "0x${base0D}";
				magenta = "0x${base0E}";
				cyan = "0x${base0C}";
				white = "0x${base05}";
			};
			bright = {
				black = "0x${base03}";
				red = "0x${base08}";
				green = "0x${base0B}";
				yellow = "0x${base0A}";
				blue = "0x${base0D}";
				magenta = "0x${base0E}";
				cyan = "0x${base0C}";
				white = "0x${base07}";
			};
			dim = {
				black = "0x${base01}";
				red = "0x${base08}";
				green = "0x${base0B}";
				yellow = "0x${base0A}";
				blue = "0x${base0D}";
				magenta = "0x${base0E}";
				cyan = "0x${base0C}";
				white = "0x${base04}";
			};
		};

		shell = {
			program = "${pkgs.zsh}/bin/zsh";
		};
	};
}