1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00
Files
niveum/configs/alacritty.nix
Kierán Meinhardt 93c87be579 fix: update alacritty
2019-09-25 10:10:36 +02:00

32 lines
943 B
Nix

{ pkgs, lib, config, ... }:
{
niveum.applications.terminal = "alacritty";
environment.systemPackages = [
pkgs.unstable.alacritty
pkgs.unstable.alacritty.terminfo
];
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 {
colors = {
primary = {
inherit (config.niveum.colours) background foreground;
};
normal = lib.mapAttrs (_: colour: colour.dark) colours;
bright = lib.mapAttrs (_: colour: colour.bright) colours;
};
font = {
normal.family = "Monospace";
size = config.niveum.fonts.size - 2;
};
key_bindings = [
{ key = "Add"; mods = "Control"; action = "IncreaseFontSize"; }
{ key = "Minus"; mods = "Control"; action = "DecreaseFontSize"; }
];
};
}