diff options
Diffstat (limited to 'alacritty/default.nix')
-rw-r--r-- | alacritty/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/alacritty/default.nix b/alacritty/default.nix new file mode 100644 index 0000000..c5681b0 --- /dev/null +++ b/alacritty/default.nix @@ -0,0 +1,35 @@ +{ + + 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" + ''; +} |