1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00
Files
niveum/configs/alacritty.nix

34 lines
987 B
Nix
Raw Normal View History

2019-09-24 23:16:08 +02:00
{ pkgs, lib, config, ... }:
{
environment.variables.TERMINAL = "alacritty";
2019-09-24 23:16:08 +02:00
environment.systemPackages = [
2019-09-25 10:10:36 +02:00
pkgs.unstable.alacritty
2020-04-10 16:18:20 +02:00
pkgs.st
2019-09-25 10:10:36 +02:00
pkgs.unstable.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"; }
];
};
}