summaryrefslogtreecommitdiff
path: root/modules/alacritty.nix
blob: 704ce793315c7e8fe2a60c3f3ce166807729d70d (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
{ config, lib, ... }:
with lib;
let
  cfg = config.nixfiles.modules.alacritty;
in
{
  options.nixfiles.modules.alacritty.enable = mkEnableOption "Alacritty terminal emulator";

  config = mkIf cfg.enable {
    hm.programs.alacritty = {
      enable = true;
      settings = {
        window = {
          padding = with config.stylix.fonts.sizes; {
            x = terminal;
            y = terminal;
          };
          dynamic_padding = false;
          decorations = "Full";
          startup_mode = "Maximized";
        };
        selection.save_to_clipboard = true;
        cursor = {
          style = {
            shape = "Block";
            blinking = "On";
          };
          vi_mode_style = {
            shape = "Block";
            blinking = "Off";
          };
        };
      };
    };
  };
}