blob: f60fe01a6e533f2245d4c14332c007dbc61f9982 (
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
|
{ config, lib, ... }: {
options = {
alacritty = {
enable = lib.mkEnableOption "enables creation of alacritty config file";
font.size = lib.mkOption {
type = lib.types.int;
default = 12;
};
font.family = lib.mkOption {
type = lib.types.str;
default = "JetBrainsMonoNL Nerd Font Mono";
};
};
};
config = {
programs.alacritty.enable = config.alacritty.enable;
programs.alacritty.settings = lib.mkIf config.alacritty.enable {
colors = {
bright = {
black = "#7f7f7f";
blue = "#1578c1";
cyan = "#00c4a3";
green = "#2bb500";
magenta = "#b14ff7";
red = "#ed1207";
white = "#ffffff";
yellow = "#fc9700";
};
normal = {
black = "#101010";
blue = "#1578c1";
cyan = "#00c4a3";
green = "#2bb500";
magenta = "#b14ff7";
red = "#ed1207";
white = "#ffffff";
yellow = "#fc9700";
};
primary = {
background = "#101010";
foreground = "#ffffff";
};
};
cursor.style.blinking = "Never";
env.TERM = "xterm-256color";
font = {
size = config.alacritty.font.size;
normal.family = config.alacritty.font.family;
};
mouse.bindings = [{
action = "PasteSelection";
mouse = "Right";
}];
window = {
dynamic_padding = true;
dynamic_title = true;
title = "Terminal";
# Pretend to be st
class = {
general = "st";
instance = "st";
};
};
};
};
}
|