feat: make alacritty a module

This commit is contained in:
matt1432 2023-10-17 20:56:27 -04:00
parent 00762bb2e9
commit 4698da1049
4 changed files with 99 additions and 94 deletions

View file

@ -62,9 +62,11 @@
matt = { matt = {
imports = [ imports = [
../../modules/alacritty.nix
../../modules/dconf.nix ../../modules/dconf.nix
../../modules/firefox/main.nix ../../modules/firefox/main.nix
]; ];
programs.alacritty.settings.font.size = 10;
home.stateVersion = "23.11"; home.stateVersion = "23.11";
}; };

View file

@ -28,7 +28,6 @@ in
}; };
programs = { programs = {
wofi = { wofi = {
enable = true; enable = true;
package = waypkgs.wofi; package = waypkgs.wofi;
@ -43,98 +42,5 @@ in
}; };
style = builtins.readFile ../config/wofi/style.css; style = builtins.readFile ../config/wofi/style.css;
}; };
alacritty = {
enable = true;
settings = {
env = {
POKE = "true";
};
window = {
padding = {
x = 0;
y = 10;
};
opacity = 0.8;
};
font = {
normal = {
family = "JetBrainsMono Nerd Font";
style = "Regular";
};
bold = {
family = "JetBrainsMono Nerd Font";
style = "Bold";
};
italic = {
family = "JetBrainsMono Nerd Font";
style = "Italic";
};
size = 12.5;
};
# https://github.com/dracula/alacritty/blob/05faff15c0158712be87d200081633d9f4850a7d/dracula.yml
colors = {
primary = {
background = "#282a36";
foreground = "#f8f8f2";
bright_foreground = "#ffffff";
};
cursor = {
text = "CellBackground";
cursor = "CellForeground";
};
vi_mode_cursor = {
text = "CellBackground";
cursor = "CellForeground";
};
search = {
matches = {
foreground = "#44475a";
background = "#50fa7b";
};
focused_match = {
foreground = "#44475a";
background = "#ffb86c";
};
footer_bar = {
background = "#282a36";
foreground = "#f8f8f2";
};
};
hints = {
start = {
foreground = "#282a36";
background = "#f1fa8c";
};
end = {
foreground = "#f1fa8c";
background = "#282a36";
};
};
line_indicator = {
foreground = "None";
background = "None";
};
selection = {
text = "CellForeground";
background = "#44475a";
};
normal = {
black = "#21222c";
red = "#ff5555";
green = "#50fa7b";
yellow = "#f1fa8c";
blue = "#bd93f9";
magenta = "#ff79c6";
cyan = "#8be9fd";
white = "#f8f8f2";
};
};
};
};
}; };
} }

View file

@ -19,6 +19,7 @@
./dotfiles.nix ./dotfiles.nix
./packages.nix ./packages.nix
../../../modules/alacritty.nix
../../../modules/dconf.nix ../../../modules/dconf.nix
../../../modules/firefox/main.nix ../../../modules/firefox/main.nix
]; ];

96
modules/alacritty.nix Normal file
View file

@ -0,0 +1,96 @@
# Home-manager module
{ lib, ... }: {
programs.alacritty = {
enable = true;
settings = {
env = {
POKE = "true";
};
window = {
padding = {
x = 0;
y = 10;
};
opacity = 0.8;
};
font = {
normal = {
family = "JetBrainsMono Nerd Font";
style = "Regular";
};
bold = {
family = "JetBrainsMono Nerd Font";
style = "Bold";
};
italic = {
family = "JetBrainsMono Nerd Font";
style = "Italic";
};
size = lib.mkDefault 12.5;
};
# https://github.com/dracula/alacritty/blob/05faff15c0158712be87d200081633d9f4850a7d/dracula.yml
colors = {
primary = {
background = "#282a36";
foreground = "#f8f8f2";
bright_foreground = "#ffffff";
};
cursor = {
text = "CellBackground";
cursor = "CellForeground";
};
vi_mode_cursor = {
text = "CellBackground";
cursor = "CellForeground";
};
search = {
matches = {
foreground = "#44475a";
background = "#50fa7b";
};
focused_match = {
foreground = "#44475a";
background = "#ffb86c";
};
footer_bar = {
background = "#282a36";
foreground = "#f8f8f2";
};
};
hints = {
start = {
foreground = "#282a36";
background = "#f1fa8c";
};
end = {
foreground = "#f1fa8c";
background = "#282a36";
};
};
line_indicator = {
foreground = "None";
background = "None";
};
selection = {
text = "CellForeground";
background = "#44475a";
};
normal = {
black = "#21222c";
red = "#ff5555";
green = "#50fa7b";
yellow = "#f1fa8c";
blue = "#bd93f9";
magenta = "#ff79c6";
cyan = "#8be9fd";
white = "#f8f8f2";
};
};
};
};
}