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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue