Add alacritty configuration and use it as default
This commit is contained in:
parent
b2846cc484
commit
6f6b32612d
7 changed files with 71 additions and 3 deletions
27
home/modules/programs/alacritty/alacritty.toml
Normal file
27
home/modules/programs/alacritty/alacritty.toml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
[general]
|
||||
ipc_socket = true
|
||||
live_config_reload = true
|
||||
|
||||
[window]
|
||||
dynamic_padding = true
|
||||
opacity = 0.8
|
||||
blur = true
|
||||
|
||||
[scrolling]
|
||||
history = 100000
|
||||
multiplier = 5
|
||||
|
||||
[font]
|
||||
size = 16
|
||||
|
||||
[bell]
|
||||
duration = 1
|
||||
|
||||
[selection]
|
||||
save_to_clipboard = true
|
||||
|
||||
[terminal]
|
||||
osc52 = "CopyPaste"
|
||||
|
||||
[mouse]
|
||||
hide_when_typing = true
|
||||
30
home/modules/programs/alacritty/default.nix
Normal file
30
home/modules/programs/alacritty/default.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
cfg = config.youthlic.programs.alacritty;
|
||||
in {
|
||||
options = {
|
||||
youthlic.programs.alacritty = {
|
||||
enable = lib.mkEnableOption "alacritty";
|
||||
};
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.alacritty = {
|
||||
enable = true;
|
||||
package = pkgs.alacritty_git;
|
||||
settings =
|
||||
(./alacritty.toml |> builtins.readFile |> builtins.fromTOML)
|
||||
// {
|
||||
colors = lib.mkForce {};
|
||||
font.size = lib.mkForce 16;
|
||||
window.opacity = lib.mkForce 0.8;
|
||||
general.import = [
|
||||
"${pkgs.alacritty-theme}/share/alacritty-theme/gruvbox_dark.toml"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -30,5 +30,6 @@
|
|||
./fzf.nix
|
||||
./eza.nix
|
||||
./ion.nix
|
||||
./alacritty
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue