alacritty is now a proper module

This commit is contained in:
Zynh Ludwig 2024-05-29 20:50:00 -07:00
parent cd936d590c
commit 1e87bd7221
3 changed files with 33 additions and 22 deletions

View file

@ -5,7 +5,6 @@
./home/modules ./home/modules
./home/modules/git.nix ./home/modules/git.nix
./home/modules/fish.nix ./home/modules/fish.nix
./home/modules/alacritty.nix
]; ];
# Home Manager needs a bit of information about you and the paths it should # Home Manager needs a bit of information about you and the paths it should
@ -17,6 +16,7 @@
enable = true; enable = true;
package = inputs.neovim-overlay.packages.${pkgs.system}.default; package = inputs.neovim-overlay.packages.${pkgs.system}.default;
}; };
snowhawk.alacritty.enable = true;
# This value determines the Home Manager release that your configuration is # This value determines the Home Manager release that your configuration is
# compatible with. This helps avoid breakage when a new Home Manager release # compatible with. This helps avoid breakage when a new Home Manager release

View file

@ -1,27 +1,35 @@
{ pkgs, ... }: { pkgs, lib, config, ... }:
let
cfg = config.snowhawk.alacritty;
in
{ {
programs.alacritty = { options.snowhawk.alacritty = {
enable = true; enable = lib.mkEnableOption "alacritty";
settings = { };
shell = "${pkgs.fish}/bin/fish";
window = { config = lib.mkIf cfg.enable {
opacity = 0.98; programs.alacritty = {
}; enable = true;
font = { settings = {
normal = { shell = "${pkgs.fish}/bin/fish";
family = "JetBrainsMono Nerd Font"; window = {
style = "Regular"; opacity = 0.98;
}; };
bold = { font = {
family = "JetBrainsMono Nerd Font"; normal = {
style = "Bold"; family = "JetBrainsMono Nerd Font";
}; style = "Regular";
italic = { };
family = "JetBrainsMono Nerd Font"; bold = {
style = "Italic"; family = "JetBrainsMono Nerd Font";
style = "Bold";
};
italic = {
family = "JetBrainsMono Nerd Font";
style = "Italic";
};
}; };
}; };
}; };
}; };
} }

View file

@ -1,4 +1,7 @@
{ ... }: { ... }:
{ {
imports = [ ./neovim.nix ]; imports = [
./neovim.nix
./alacritty.nix
];
} }