feat: add alacritty

This commit is contained in:
Felix Schröter 2020-06-18 16:25:53 +02:00
parent c1c279a0ae
commit c56561aa35
No known key found for this signature in database
GPG key ID: A12D7C9D2FD34458
2 changed files with 46 additions and 1 deletions

View file

@ -1,6 +1,22 @@
{ config, pkgs, ... }:
{ config, pkgs, lib, ... }:
with pkgs; with lib;
let
yamlToJSON = path: runCommand "yaml.json" { nativeBuildInputs = [ pkgs.ruby ]; } ''
ruby -rjson -ryaml -e "puts YAML.load(ARGF).to_json" < ${path} > $out
'';
in
{
# doesn't support font ligatures yet
# emoji support needs to be setup
# use with tabbed for tab support: tabbed -c alacritty --embed
# TODO create PR for adding programs.alacritty.package
programs.alacritty = {
enable = true;
settings = recursiveUpdate {
} (trivial.importJSON (yamlToJSON ./alacritty-gruvbox-dark.yml));
};
programs.kitty = {
enable = true;
font = {