aboutsummaryrefslogtreecommitdiff
path: root/home-manager/tests/modules/programs/alacritty/example-settings.nix
blob: 46be1064ce607ded45a1c6ff2becde5637088272 (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
{ config, lib, pkgs, ... }:

with lib;

{
  config = {
    programs.alacritty = {
      enable = true;

      settings = {
        window.dimensions = {
          lines = 3;
          columns = 200;
        };

        key_bindings = [{
          key = "K";
          mods = "Control";
          chars = "\\x0c";
        }];
      };
    };

    nixpkgs.overlays = [
      (self: super: { alacritty = pkgs.writeScriptBin "dummy-alacritty" ""; })
    ];

    nmt.script = ''
      assertFileContent \
        home-files/.config/alacritty/alacritty.yml \
        ${./example-settings-expected.yml}
    '';
  };
}