Re-add alacritty

This commit is contained in:
Oliver Davies 2024-06-15 12:17:07 +01:00
parent 41386749b8
commit 25b286786d
4 changed files with 37 additions and 2 deletions
lib/nixos/home-manager

View file

@ -6,6 +6,7 @@
}:
{
imports = [
./modules/alacritty.nix
./modules/autorandr.nix
./modules/awesome.nix
./modules/copyq.nix

View file

@ -0,0 +1,34 @@
{ lib, pkgs, self, ... }:
let
inherit (lib) strings;
inherit (strings) toInt;
theme = import "${self}/lib/theme" { inherit pkgs; };
in {
programs.alacritty = {
enable = true;
settings = {
env = {
TERM = "screen-256color";
};
window.padding = {
x = 15;
y = 15;
};
font = {
size = toInt "${theme.fonts.monospace.size}";
bold.style = "Regular";
normal.family = "${theme.fonts.monospace.name}";
offset.y = 12;
glyph_offset.y = 6;
};
shell = { program = "zsh"; };
};
};
}