nixos/home/modules/alacritty.nix

48 lines
1.0 KiB
Nix
Raw Normal View History

2024-05-30 03:50:00 +00:00
{ pkgs, lib, config, ... }:
2024-05-30 06:34:10 +00:00
2024-05-30 03:50:00 +00:00
let
cfg = config.snowhawk.alacritty;
in
2024-05-30 02:58:14 +00:00
{
2024-05-30 03:50:00 +00:00
options.snowhawk.alacritty = {
enable = lib.mkEnableOption "alacritty";
};
config = lib.mkIf cfg.enable {
programs.alacritty = {
enable = true;
settings = {
shell = "${pkgs.fish}/bin/fish";
window = {
opacity = 0.98;
2024-05-30 02:58:14 +00:00
};
2024-05-31 05:10:32 +00:00
colors = {
primary.background = "#050505";
};
hints.enabled = {
hyperlinks = true;
post_processing = true;
};
2024-05-30 03:50:00 +00:00
font = {
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
};
};
};
};
}