Refactor gui module

This commit is contained in:
ulic-youthlic 2025-07-01 23:17:40 +08:00
parent edfe0e5bf9
commit e65183b4a4
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
36 changed files with 236 additions and 309 deletions

View 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

View file

@ -0,0 +1,30 @@
{
lib,
config,
pkgs,
...
}: let
cfg = config.david.programs.alacritty;
in {
options = {
david.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"
];
};
};
};
}