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

37 lines
577 B
Nix
Raw Normal View History

{
2024-03-17 00:27:24 +00:00
lib,
pkgs,
self,
...
}: let
inherit (lib) strings;
inherit (strings) toInt;
theme = import "${self}/lib/theme" {inherit pkgs;};
in {
programs.alacritty = {
enable = true;
settings = {
window.opacity = 0.9;
window.padding = {
x = 15;
y = 15;
};
font = {
2024-03-17 00:27:24 +00:00
size = toInt "${theme.fonts.monospace.size}";
bold.style = "Regular";
2024-03-17 00:27:24 +00:00
normal.family = "${theme.fonts.monospace.name}";
offset.y = 12;
glyph_offset.y = 6;
};
2024-02-13 21:33:32 +00:00
shell = {program = "zsh";};
};
};
}