Alacritty configured

This commit is contained in:
LarsZauberer 2024-04-13 21:31:55 +02:00
commit 23fee3c7eb
6 changed files with 536 additions and 48 deletions

42
modules/gui/alacritty.nix Normal file
View file

@ -0,0 +1,42 @@
{ config, lib, inputs, pkgs, ... }:
with lib; let
username = config.modules.other.system.username;
cfg = config.modules.programs.alacritty;
in {
options.modules.programs.alacritty = {
enable = mkEnableOption "alacritty";
catppuccin = mkEnableOption "catppuccin";
opacity = mkOption {
description = "opacity of alacritty";
type = types.number;
default = 1.0;
};
blur = mkOption {
description = "blur of alacritty";
type = types.bool;
default = false;
};
};
config = mkIf cfg.enable {
home-manager.users.${username} = {
programs.alacritty.enable = true;
programs.alacritty.settings = {
window = {
blur = cfg.blur;
opacity = cfg.opacity;
};
colors = mkIf cfg.catppuccin {
primary = {
background = "#1e1e2e";
foreground = "#cdd6f4";
dim_foreground = "#7f849c";
bright_foreground = "#cdd6f4";
};
};
};
};
};
}

View file

@ -11,6 +11,7 @@ _: {
./foot.nix
# ./vivado.nix
./WM
./firefox.nix
./alacritty.nix
./firefox.nix
];
}