691 current 2024-05-26 22:12:48 24.11.20240524.bfb7a88 6.9.1-zen1 *
This commit is contained in:
parent
f723b9560e
commit
5e1a70ca49
7 changed files with 207 additions and 102 deletions
50
modules/home/apps/term/alacritty/default.nix
Normal file
50
modules/home/apps/term/alacritty/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -12,10 +12,10 @@ in {
|
|||
enable = mkBoolOpt false "Enable Kitty Term";
|
||||
|
||||
fonts = {
|
||||
normal = mkStringOpt "Zed Mono Bold" "Normal Font";
|
||||
bold = mkStringOpt "Zed Mono ExtraBold" "Bold Font";
|
||||
italic = mkStringOpt "Zed Mono Bold Italic" "Italic Font";
|
||||
bold_italic = mkStringOpt "Zed Mono ExtraBold Italic" "Bold Italic Font";
|
||||
normal = mkStringOpt "ZedMono NFM Bold" "Normal Font";
|
||||
bold = mkStringOpt "ZedMono NFM ExtraBold" "Bold Font";
|
||||
italic = mkStringOpt "ZedMono NFM Bold Italic" "Italic Font";
|
||||
bold_italic = mkStringOpt "ZedMono NFM ExtraBold Italic" "Bold Italic Font";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -31,6 +31,8 @@ in {
|
|||
bold_font ${cfg.fonts.bold}
|
||||
italic_font ${cfg.fonts.italic}
|
||||
bold_italic_font ${cfg.fonts.bold_italic}
|
||||
|
||||
disable_ligatures always
|
||||
'';
|
||||
|
||||
catppuccin.enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue