nixos-config/home/shell/terminal.nix

31 lines
788 B
Nix
Raw Normal View History

2020-06-18 16:25:53 +02:00
{ config, pkgs, lib, ... }:
2020-06-18 16:25:53 +02:00
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
{
2020-06-18 16:25:53 +02:00
# 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 = {
name = "Fira Code";
package = pkgs.fira-code;
};
extraConfig = ''
${with builtins; readFile ./kitty-gruvbox-dark.conf}
'';
};
}