mirror of
https://github.com/kmein/niveum
synced 2026-03-21 20:31:07 +01:00
chore: nixfmt
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
{ pkgs, lib, config, ... }:
|
||||
let
|
||||
colourNames = [ "black" "red" "green" "yellow" "blue" "magenta" "cyan" "white" ];
|
||||
colourNames =
|
||||
[ "black" "red" "green" "yellow" "blue" "magenta" "cyan" "white" ];
|
||||
colours = lib.getAttrs colourNames config.niveum.colours;
|
||||
alacrittyConfig = {
|
||||
background_opacity = 0.9;
|
||||
colors = {
|
||||
primary = {
|
||||
inherit (config.niveum.colours) background foreground;
|
||||
};
|
||||
primary = { inherit (config.niveum.colours) background foreground; };
|
||||
normal = lib.mapAttrs (_: colour: colour.dark) colours;
|
||||
bright = lib.mapAttrs (_: colour: colour.bright) colours;
|
||||
};
|
||||
@@ -16,9 +15,21 @@ let
|
||||
size = config.niveum.fonts.size - 2;
|
||||
};
|
||||
key_bindings = [
|
||||
{ key = "Add"; mods = "Control"; action = "IncreaseFontSize"; }
|
||||
{ key = "Minus"; mods = "Control"; action = "DecreaseFontSize"; }
|
||||
{ key = "Key0"; mods = "Control"; action = "ResetFontSize"; }
|
||||
{
|
||||
key = "Add";
|
||||
mods = "Control";
|
||||
action = "IncreaseFontSize";
|
||||
}
|
||||
{
|
||||
key = "Minus";
|
||||
mods = "Control";
|
||||
action = "DecreaseFontSize";
|
||||
}
|
||||
{
|
||||
key = "Key0";
|
||||
mods = "Control";
|
||||
action = "ResetFontSize";
|
||||
}
|
||||
];
|
||||
};
|
||||
flippedAlacrittyConfig = alacrittyConfig // {
|
||||
@@ -27,15 +38,16 @@ let
|
||||
foreground = config.niveum.colours.background;
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
in {
|
||||
environment.variables.TERMINAL = "alacritty";
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
alacritty
|
||||
alacritty.terminfo
|
||||
(pkgs.writers.writeDashBin "alacritty-flipped" ''
|
||||
${pkgs.alacritty}/bin/alacritty --config-file ${pkgs.writeText "alacritty.yml" (builtins.toJSON flippedAlacrittyConfig)} $@
|
||||
${pkgs.alacritty}/bin/alacritty --config-file ${
|
||||
pkgs.writeText "alacritty.yml" (builtins.toJSON flippedAlacrittyConfig)
|
||||
} $@
|
||||
'')
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user