Everything I take with me from machine to machine.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
loadout/alacritty/default.nix

35 lines
800 B

{
pkgs ? (import ../pkgs.nix) {},
zsh ? pkgs.zsh,
}: rec {
# TODO figure out a way to provide my font to alacritty at runtime. fontconfig
# is a hot mess...
#
#dataDir = pkgs.stdenv.mkDerivation {
# name = "alacritty-dataDir";
# src = ./fonts;
# buildInputs = [ pkgs.fontconfig ];
# builder = builtins.toFile "builder.sh" ''
# source $stdenv/setup
# mkdir "$out"
# cp -r "$src" "$out"/fonts
# chmod -R +w "$out"
# env
# export FONTCONFIG_FILE="$out"/fontconfig
# fc-cache --verbose "$out"/fonts
# '';
#};
alacritty = pkgs.writeScriptBin "alacritty" ''
#!${pkgs.bash}/bin/bash
exec ${pkgs.nixgl}/bin/nixGLIntel ${pkgs.alacritty}/bin/alacritty \
--config-file ${./alacritty.yml} \
-e "${zsh}/bin/zsh"
'';
}