diff options
| author | beeb5k <beebeeb5k@gmail.com> | 2026-03-06 21:37:34 +0530 |
|---|---|---|
| committer | beeb5k <beebeeb5k@gmail.com> | 2026-03-06 21:37:34 +0530 |
| commit | 0de067092c9dd19c3352554e39de73e172f29b42 (patch) | |
| tree | 4175503766405733846687efdb29657bb322dccd /common/modules/terminal/alacritty.nix | |
| parent | f1de2014dcd426e015a2638222160d9d349ea4e5 (diff) | |
Add modules
Diffstat (limited to 'common/modules/terminal/alacritty.nix')
| -rw-r--r-- | common/modules/terminal/alacritty.nix | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/common/modules/terminal/alacritty.nix b/common/modules/terminal/alacritty.nix new file mode 100644 index 0000000..09cb54f --- /dev/null +++ b/common/modules/terminal/alacritty.nix @@ -0,0 +1,46 @@ +{ + lib, + config, +}: +let + cfg = config.beeMods.terminal; +in +{ + config = lib.mkIf cfg.alacritty { + programs.alacritty = { + enable = true; + settings = { + cursor = { + thickness = 0.0; + }; + debug = { + prefer_egl = true; + }; + colors = { + draw_bold_text_with_bright_colors = cfg.font.bright_color_is_bold; + }; + mouse = { + hide_when_typing = true; + }; + general = { + import = lib.optionals config.beeMods.matugen.enable [ "~/.config/alacritty/colors.toml" ]; + }; + window = { + dynamic_padding = true; + padding = { + y = cfg.window.padding-y; + x = cfg.window.padding-x; + }; + dimensions = { + lines = 75; + columns = 100; + }; + }; + font = { + normal.family = cfg.font.family; + size = cfg.font.size; + }; + }; + }; + }; +} |
