691 current 2024-05-26 22:12:48 24.11.20240524.bfb7a88 6.9.1-zen1 *

This commit is contained in:
zackartz 2024-05-26 22:12:57 -04:00
parent f723b9560e
commit 5e1a70ca49
No known key found for this signature in database
GPG key ID: 5B53E53A9A514DBA
7 changed files with 207 additions and 102 deletions

View file

@ -0,0 +1,50 @@
{
lib,
config,
pkgs,
...
}:
with lib;
with lib.custom; let
cfg = config.apps.term.alacritty;
in {
options.apps.term.alacritty = with types; {
enable = mkBoolOpt false "Enable Alacritty Term";
fonts = {
normal = {
family = mkStringOpt "ZedMono NFM" "The Family of the font";
style = mkStringOpt "Bold" "The Style of the font";
};
bold = {
family = mkStringOpt "ZedMono NFM" "The Family of the font";
style = mkStringOpt "ExtraBold" "The Style of the font";
};
italic = {
family = mkStringOpt "ZedMono NFM" "The Family of the font";
style = mkStringOpt "Bold Italic" "The Style of the font";
};
bold_italic = {
family = mkStringOpt "ZedMono NFM" "The Family of the font";
style = mkStringOpt "ExtraBold Italic" "The Style of the font";
};
};
};
config = mkIf cfg.enable {
programs.alacritty = {
enable = true;
catppuccin.enable = true;
settings = {
background_opacity = "0.75";
font = {
normal = cfg.fonts.normal;
bold = cfg.fonts.bold;
italic = cfg.fonts.italic;
bold_italic = cfg.fonts.bold_italic;
};
};
};
};
}