From 0de067092c9dd19c3352554e39de73e172f29b42 Mon Sep 17 00:00:00 2001 From: beeb5k Date: Fri, 6 Mar 2026 21:37:34 +0530 Subject: Add modules --- common/modules/terminal/alacritty.nix | 46 +++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 common/modules/terminal/alacritty.nix (limited to 'common/modules/terminal/alacritty.nix') 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; + }; + }; + }; + }; +} -- cgit v1.3.1