tangled
alpha
login
or
join now
anirudh.fi
/
dotfiles
5
fork
atom
my nix dotfiles
5
fork
atom
overview
issues
pulls
pipelines
nix/darwin: switch to alacritty
anirudh.fi
2 years ago
4d8fdd20
e0d420bc
+19
-5
3 changed files
expand all
collapse all
unified
split
programs
alacritty.nix
common.nix
default.nix
+18
-4
programs/alacritty.nix
···
1
1
{ config
2
2
, pkgs
3
3
+
, lib
3
4
, ...
4
5
}:
6
6
+
let
7
7
+
isDarwin = lib.strings.hasSuffix "darwin" pkgs.stdenv.hostPlatform.system;
5
8
9
9
+
fontConfig =
10
10
+
if isDarwin then {
11
11
+
normal.family = "SF Mono";
12
12
+
bold = { family = "SF Mono"; style = "Semibold"; };
13
13
+
size = 15.0;
14
14
+
offset.y = 5;
15
15
+
}
16
16
+
else {
17
17
+
normal = "Input";
18
18
+
size = 12.0;
19
19
+
};
20
20
+
in
6
21
{
7
22
programs.alacritty = {
8
23
enable = true;
···
17
32
dynamic_padding = true;
18
33
decorations = "None";
19
34
startup_mode = "Maximized";
20
20
-
};
21
35
22
22
-
font = {
23
23
-
size = 12.0;
24
36
25
25
-
normal.family = "Input";
37
37
+
option_as_alt = "OnlyLeft";
26
38
};
27
39
40
40
+
font = fontConfig;
28
41
cursor.style = "Beam";
42
42
+
29
43
30
44
colors = {
31
45
primary = {
+1
programs/common.nix
···
13
13
./neovim.nix
14
14
./bash.nix
15
15
./ssh.nix
16
16
+
./alacritty.nix
16
17
];
17
18
18
19
programs = {
-1
programs/default.nix
···
9
9
imports = [
10
10
./firefox.nix
11
11
./common.nix
12
12
-
./alacritty.nix
13
12
];
14
13
15
14
programs = {