nixos/home/modules/alacritty.nix

47 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, config, ... }:
2024-05-29 23:34:10 -07:00
2024-05-29 20:50:00 -07:00
let
cfg = config.snowhawk.alacritty;
2024-07-21 12:41:21 -07:00
macos = config.snowhawk.macos.enable;
2024-05-29 20:50:00 -07:00
in
2024-05-29 19:58:14 -07:00
{
2024-05-29 20:50:00 -07:00
options.snowhawk.alacritty = {
2024-07-16 09:15:30 -07:00
enable = lib.mkEnableOption "alacritty home-manager module";
2024-05-29 20:50:00 -07:00
};
config = lib.mkIf cfg.enable {
programs.alacritty = {
enable = true;
settings = {
window = {
opacity = 0.98;
2024-07-21 12:41:21 -07:00
decorations = lib.mkIf macos "buttonless";
option_as_alt = lib.mkIf macos "Both";
2024-05-29 19:58:14 -07:00
};
2024-05-31 04:00:55 -07:00
colors = {
primary.background = "#050505";
};
2024-05-29 20:50:00 -07:00
font = {
2024-05-31 04:00:55 -07:00
size = 12.0;
2024-05-29 20:50:00 -07:00
normal = {
family = "JetBrainsMono Nerd Font";
style = "Regular";
};
bold = {
family = "JetBrainsMono Nerd Font";
2024-05-30 22:01:14 -07:00
style = "SemiBold";
2024-05-29 20:50:00 -07:00
};
italic = {
family = "JetBrainsMono Nerd Font";
style = "Italic";
};
2024-05-30 22:01:14 -07:00
bold_italic = {
family = "JetBrainsMono Nerd Font";
style = "SemiBold Italic";
};
2024-05-29 19:58:14 -07:00
};
};
};
};
}