mirror of
https://github.com/kmein/niveum
synced 2026-03-19 19:41:08 +01:00
feat: move to alacritty
This commit is contained in:
32
configs/alacritty.nix
Normal file
32
configs/alacritty.nix
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{ pkgs, lib, config, ... }:
|
||||||
|
{
|
||||||
|
niveum.applications.terminal = "alacritty";
|
||||||
|
|
||||||
|
environment.systemPackages = [
|
||||||
|
pkgs.alacritty
|
||||||
|
pkgs.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;
|
||||||
|
dim_foreground = config.niveum.colours.background;
|
||||||
|
};
|
||||||
|
normal = lib.mapAttrs (_: colour: colour.dark) colours;
|
||||||
|
bright = lib.mapAttrs (_: colour: colour.bright) colours;
|
||||||
|
};
|
||||||
|
font = {
|
||||||
|
normal.family = config.niveum.fonts.terminal.name;
|
||||||
|
size = config.niveum.fonts.terminal.size - 2;
|
||||||
|
};
|
||||||
|
key_bindings = [
|
||||||
|
{ key = "Add"; mods = "Control"; action = "IncreaseFontSize"; }
|
||||||
|
{ key = "Minus"; mods = "Control"; action = "DecreaseFontSize"; }
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -10,6 +10,7 @@ in
|
|||||||
}
|
}
|
||||||
<home-manager/nixos>
|
<home-manager/nixos>
|
||||||
# <configs/mopidy.nix>
|
# <configs/mopidy.nix>
|
||||||
|
<configs/alacritty.nix>
|
||||||
<configs/bash.nix>
|
<configs/bash.nix>
|
||||||
<configs/bluetooth.nix>
|
<configs/bluetooth.nix>
|
||||||
<configs/chromium.nix>
|
<configs/chromium.nix>
|
||||||
@@ -51,7 +52,7 @@ in
|
|||||||
<configs/todo-txt.nix>
|
<configs/todo-txt.nix>
|
||||||
<configs/traadfri.nix>
|
<configs/traadfri.nix>
|
||||||
<configs/unclutter.nix>
|
<configs/unclutter.nix>
|
||||||
<configs/urxvt.nix>
|
# <configs/urxvt.nix>
|
||||||
<configs/vscode.nix>
|
<configs/vscode.nix>
|
||||||
<configs/xautolock.nix>
|
<configs/xautolock.nix>
|
||||||
<configs/xresources.nix>
|
<configs/xresources.nix>
|
||||||
|
|||||||
Reference in New Issue
Block a user