about summary refs log tree commit diff
path: root/home/terminal/alacritty/default.nix
blob: 28e03fbc508c68e63d1651906a58786eefa815d9 (plain) (blame)
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
{ config, lib, pkgs, ... }:
let cfg = config.my.home.terminal;
in
{
  config = lib.mkIf (cfg.program == "alacritty") {
    programs.alacritty = {
      enable = true;

      settings = {
        env = { TERM = "xterm-256color"; };
        live_config_reload = true;
        draw_bold_text_with_bright_colors = true;
        selection = { save_to_clipboard = true; };
        colors = {
          primary = {
            background = "#000000";
            foreground = "#D3D7CF";
          };

          normal = {
            black = "#2E3436";
            red = "#CC0000";
            green = "#4E9A06";
            yellow = "#C4A000";
            blue = "#3465A4";
            magenta = "#EF33C0";
            cyan = "#04B5B8";
            white = "#D3D7CF";
          };

          bright = {
            black = "#555753";
            red = "#EF2929";
            green = "#8AE234";
            yellow = "#FCE94F";
            blue = "#729FCF";
            magenta = "#EE38DA";
            cyan = "#34E2E2";
            white = "#EEEEEC";
          };
        };
        font = {
          size = 15;
          normal.family = "Source Code Pro";
        };
        cursor = {
          style.blinking = "Never";
          unfocused_hollow = true;
        };
      };
    };
  };
}