dotfiles/nix/modules/home-manager/alacritty.nix

43 lines
636 B
Nix
Raw Normal View History

2024-09-23 12:17:10 +00:00
{
lib,
pkgs,
self,
...
}:
2024-06-15 11:17:07 +00:00
let
inherit (lib) strings;
inherit (strings) toInt;
theme = import "${self}/nix/lib/theme" { inherit pkgs; };
2024-09-23 12:17:10 +00:00
in
{
2024-06-15 11:17:07 +00:00
programs.alacritty = {
enable = true;
settings = {
env = {
TERM = "screen-256color";
};
window.padding = {
x = 15;
y = 15;
};
font = {
size = toInt "${theme.fonts.monospace.size}";
bold.style = "Regular";
2024-06-15 11:17:07 +00:00
normal.family = "${theme.fonts.monospace.name}";
2024-11-16 15:47:44 +00:00
offset.y = 6;
glyph_offset.y = 3;
2024-06-15 11:17:07 +00:00
};
2024-11-13 01:40:49 +00:00
terminal.shell = {
2024-09-23 12:17:10 +00:00
program = "zsh";
};
2024-06-15 11:17:07 +00:00
};
};
}