nixos-config/modules/desktop/alacritty.nix

29 lines
768 B
Nix
Raw Normal View History

2024-06-24 04:10:59 +00:00
{ pkgs, ... }:
let
config = (pkgs.formats.toml { }).generate "alacritty.toml"
{
env.TERM = "xterm-256color";
font.size = 12;
window = {
dynamic_padding = true;
resize_increments = true;
dimensions = { columns = 120; lines = 40; };
};
keyboard.bindings = [
{ action = "ScrollHalfPageDown"; mods = "Shift"; key = "PageDown"; }
{ action = "ScrollHalfPageUp"; mods = "Shift"; key = "PageUp"; }
];
colors = {
primary.background = "0x1e1e1e";
primary.foreground = "0xffffff";
};
import = [ "${pkgs.alacritty-theme}/tango_dark.toml" ];
};
in
{
environment.etc."xdg/alacritty.toml".source = config;
environment.systemPackages = [ pkgs.alacritty ];
}