about summary refs log tree commit diff stats
path: root/hm/soispha/conf/alacritty/default.nix
blob: 9048fc3495ea4d064e7e7e47af59dec4a19a9c78 (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
{lib, ...}: let
  # NOTE: The `colorscheme.yml` import __needs__ to be __after__ the `colors.yml` import, otherwise, applying it wont
  # work. <2023-08-28>
  config_file = ''
    ${lib.strings.fileContents ./yaml/base.yml}
    ${lib.strings.fileContents ./yaml/bell.yml}
    ${lib.strings.fileContents ./yaml/colors.yml}
    ${lib.strings.fileContents ./yaml/colorscheme.yml}
    ${lib.strings.fileContents ./yaml/cursor.yml}
    ${lib.strings.fileContents ./yaml/debug.yml}
    ${lib.strings.fileContents ./yaml/env.yml}
    ${lib.strings.fileContents ./yaml/font.yml}
    ${lib.strings.fileContents ./yaml/hints.yml}
    ${lib.strings.fileContents ./yaml/key_bindings.yml}
    ${lib.strings.fileContents ./yaml/mouse.yml}
    ${lib.strings.fileContents ./yaml/mouse_bindings.yml}
    ${lib.strings.fileContents ./yaml/scrolling.yml}
    ${lib.strings.fileContents ./yaml/selection.yml}
    ${lib.strings.fileContents ./yaml/shell.yml}
    ${lib.strings.fileContents ./yaml/window.yml}
  '';
in {
  home.sessionVariables = {
    # This is **not** the TERM variable but a special one to signify my favorite terminal.
    TERMINAL = "alacritty";

    # These two here should be set by alacritty at start-up
    # TERM = "alacritty";
    # COLORTERM = "truecolor";
  };
  programs.alacritty = {
    enable = true;
  };
  xdg.configFile."alacritty/alacritty.yml".text = config_file;
}