nixos/home/modules/alacritty.nix

47 lines
1.1 KiB
Nix
Raw Permalink Normal View History

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