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

@ -0,0 +1,29 @@
colors:
# Default colors
primary:
# hard contrast: background = '#1d2021'
background: '#282828'
# soft contrast: background = '#32302f'
foreground: '#ebdbb2'
# Normal colors
normal:
black: '#282828'
red: '#cc241d'
green: '#98971a'
yellow: '#d79921'
blue: '#458588'
magenta: '#b16286'
cyan: '#689d6a'
white: '#a89984'
# Bright colors
bright:
black: '#928374'
red: '#fb4934'
green: '#b8bb26'
yellow: '#fabd2f'
blue: '#83a598'
magenta: '#d3869b'
cyan: '#8ec07c'
white: '#ebdbb2'

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 = {