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

33 lines
573 B
Nix
Raw Normal View History

2024-03-18 20:33:28 +00:00
{ lib, pkgs, self, ... }:
let
2024-03-17 00:27:24 +00:00
inherit (lib) strings;
inherit (strings) toInt;
2024-03-18 20:33:28 +00:00
theme = import "${self}/lib/theme" { inherit pkgs; };
2024-03-17 00:27:24 +00:00
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-03-18 20:33:28 +00:00
shell = { program = "zsh"; };
};
};
}