5a086020cb
they switched to TOML & I had a typo in `scolling` Change-Id: If68408162e7772fbd3b06944ffd9d51dd2134efa Reviewed-on: https://cl.tvl.fyi/c/depot/+/11083 Autosubmit: Profpatsch <mail@profpatsch.de> Reviewed-by: Profpatsch <mail@profpatsch.de> Tested-by: BuildkiteCI
27 lines
708 B
Nix
27 lines
708 B
Nix
{ depot, pkgs, lib, ... }:
|
|
|
|
let
|
|
bins = depot.nix.getBins pkgs.alacritty [ "alacritty" ];
|
|
|
|
config =
|
|
{
|
|
alacritty-config = { font.size = 18; scrolling.history = 100000; };
|
|
# This disables the dpi-sensitive scaling (cause otherwise the font will be humongous on my laptop screen)
|
|
alacritty-env.WINIT_X11_SCALE_FACTOR = 1;
|
|
};
|
|
|
|
|
|
config-file = (pkgs.formats.toml { }).generate "alacritty.conf" config.alacritty-config;
|
|
|
|
alacritty = depot.nix.writeExecline "alacritty" { } (
|
|
(lib.concatLists (lib.mapAttrsToList (k: v: [ "export" k (toString v) ]) config.alacritty-env))
|
|
++ [
|
|
bins.alacritty
|
|
"--config-file"
|
|
config-file
|
|
"$@"
|
|
]
|
|
);
|
|
|
|
in
|
|
alacritty
|