flake/users/guanranwang/home-manager/modules/terms/alacritty.nix

24 lines
560 B
Nix
Raw Normal View History

{
lib,
config,
pkgs,
...
}: let
cfg = config.myFlake.home-manager.terminal;
in {
2023-11-05 09:21:37 +00:00
programs.alacritty = {
enable = true;
settings = {
import =
lib.mkIf (config.myFlake.home-manager.colorScheme == "tokyonight")
["${pkgs.vimPlugins.tokyonight-nvim}/extras/alacritty/tokyonight_night.yml"];
cursor.style = cfg.cursorStyle;
font.size = cfg.fontSize;
window.padding.x = cfg.padding;
window.padding.y = cfg.padding;
#env.WINIT_X11_SCALE_FACTOR = "1"; # workaround for.. something?
};
2023-11-05 09:21:37 +00:00
};
}