dotfiles/modules/nixos/desktop/addons/alacritty/default.nix

52 lines
1.1 KiB
Nix
Raw Normal View History

2023-03-12 03:59:11 +00:00
{
options,
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.aa.desktop.addons.alacritty;
in {
options.aa.desktop.addons.alacritty = with types; {
enable = mkEnableOption "alacritty";
};
config = mkIf cfg.enable {
2023-05-28 02:25:52 +00:00
aa.system.fonts.enable = true;
2023-03-12 03:59:11 +00:00
2023-03-19 15:16:10 +00:00
# alacritty won't start without opengl
2024-07-11 03:16:44 +00:00
hardware.graphics.enable = true;
2023-03-19 15:16:10 +00:00
2023-03-12 03:59:11 +00:00
aa.home = {
extraOptions = {
programs.alacritty = {
enable = true;
settings = {
2023-03-30 05:11:30 +00:00
window.opacity = 0.95;
2023-03-12 03:59:11 +00:00
font = {
2023-03-30 05:11:30 +00:00
size = 12.0;
2023-03-12 03:59:11 +00:00
normal = {
family = "Hack Nerd Font";
style = "Regular";
};
bold = {
family = "Hack Nerd Font";
style = "Bold";
};
italic = {
family = "Hack Nerd Font";
style = "Italic";
};
bold_italic = {
family = "Hack Nerd Font";
style = "Bold Italic";
};
};
};
};
};
};
};
}