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

46 lines
1.1 KiB
Nix
Raw Normal View History

2019-09-24 23:16:08 +02:00
{ pkgs, lib, config, ... }:
2021-04-07 09:37:57 +02:00
{
2020-05-31 18:23:08 +02:00
environment.variables.TERMINAL = "alacritty";
2020-10-16 08:23:27 +02:00
environment.systemPackages = [
2020-10-28 20:25:26 +01:00
pkgs.alacritty
2020-05-31 18:23:08 +02:00
];
2021-04-07 09:37:57 +02:00
home-manager.users.me.xdg.configFile =
let
inherit (import <niveum/lib>) colours;
colourNames = [ "black" "red" "green" "yellow" "blue" "magenta" "cyan" "white" ];
colourPairs = lib.getAttrs colourNames colours;
in {
"alacritty/alacritty.yml".source = (pkgs.formats.yaml {}).generate "alacritty.yml" {
background_opacity = 0.9;
colors = {
primary = { inherit (colours) background foreground; };
normal = lib.mapAttrs (_: colour: colour.dark) colourPairs;
bright = lib.mapAttrs (_: colour: colour.bright) colourPairs;
};
font = {
normal.family = "Monospace";
size = 6;
};
key_bindings = [
{
key = "Add";
mods = "Control";
action = "IncreaseFontSize";
}
{
key = "Minus";
mods = "Control";
action = "DecreaseFontSize";
}
{
key = "Key0";
mods = "Control";
action = "ResetFontSize";
}
];
};
2020-05-31 18:23:08 +02:00
};
2019-09-24 23:16:08 +02:00
}