26 lines
640 B
Nix
26 lines
640 B
Nix
{ pkgs, ... }:
|
|
let
|
|
alacrittyconf = pkgs.writeText "alacritty.toml" ''
|
|
[window]
|
|
opacity = 0.85
|
|
|
|
[scrolling]
|
|
history = 25000
|
|
multiplier = 5
|
|
|
|
[font]
|
|
normal = { family = "0xProto Nerd Font Mono", style = "Regular" }
|
|
bold = { family = "0xProto Nerd Font Mono", style = "Bold" }
|
|
italic = { family = "0xProto Nerd Font Mono", style = "Italic" }
|
|
size = 12.00
|
|
'';
|
|
in
|
|
pkgs.symlinkJoin {
|
|
name = "alacritty-wrapped";
|
|
paths = [ pkgs.alacritty ];
|
|
buildInputs = [ pkgs.makeWrapper ];
|
|
postBuild = ''
|
|
wrapProgram $out/bin/alacritty --add-flags "--config-file ${alacrittyconf}"
|
|
'';
|
|
}
|