Alacritty configured
This commit is contained in:
parent
b104a515e0
commit
23fee3c7eb
6 changed files with 536 additions and 48 deletions
42
modules/gui/alacritty.nix
Normal file
42
modules/gui/alacritty.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -11,6 +11,7 @@ _: {
|
|||
./foot.nix
|
||||
# ./vivado.nix
|
||||
./WM
|
||||
./firefox.nix
|
||||
./alacritty.nix
|
||||
./firefox.nix
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue