2019-09-24 23:16:08 +02:00
|
|
|
{ pkgs, lib, config, ... }:
|
|
|
|
|
{
|
2019-12-08 22:38:05 +01:00
|
|
|
environment.variables.TERMINAL = "alacritty";
|
2019-09-24 23:16:08 +02:00
|
|
|
|
2020-04-22 17:42:45 +02:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
alacritty
|
|
|
|
|
alacritty.terminfo
|
2019-09-24 23:16:08 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
home-manager.users.me.xdg.configFile."alacritty/alacritty.yml".text =
|
|
|
|
|
let
|
|
|
|
|
colourNames = [ "black" "red" "green" "yellow" "blue" "magenta" "cyan" "white" ];
|
|
|
|
|
colours = lib.getAttrs colourNames config.niveum.colours;
|
|
|
|
|
in builtins.toJSON {
|
2020-04-13 10:53:47 +02:00
|
|
|
background_opacity = 0.9;
|
2019-09-24 23:16:08 +02:00
|
|
|
colors = {
|
|
|
|
|
primary = {
|
|
|
|
|
inherit (config.niveum.colours) background foreground;
|
|
|
|
|
};
|
|
|
|
|
normal = lib.mapAttrs (_: colour: colour.dark) colours;
|
|
|
|
|
bright = lib.mapAttrs (_: colour: colour.bright) colours;
|
|
|
|
|
};
|
|
|
|
|
font = {
|
2019-09-25 10:10:36 +02:00
|
|
|
normal.family = "Monospace";
|
|
|
|
|
size = config.niveum.fonts.size - 2;
|
2019-09-24 23:16:08 +02:00
|
|
|
};
|
|
|
|
|
key_bindings = [
|
|
|
|
|
{ key = "Add"; mods = "Control"; action = "IncreaseFontSize"; }
|
|
|
|
|
{ key = "Minus"; mods = "Control"; action = "DecreaseFontSize"; }
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
}
|