Move HM modules

This commit is contained in:
Filippo Berto 2023-07-19 10:42:09 +01:00
parent 5db76d0fed
commit 3cf0004b78
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056
110 changed files with 403 additions and 564 deletions

57
modules/hm/alacritty.nix Normal file
View file

@ -0,0 +1,57 @@
{ pkgs, ... }:
let
strPalette = with pkgs.rice;
pkgs.lib.nix-rice.palette.toRgbHex rec {
inherit (colorPalette) normal bright primary;
dim = colorPalette.dark;
cursor = {
cursor = normal.white;
text = normal.black;
};
vi_mode_cursor = {
cursor = normal.white;
text = normal.black;
};
selection.background = dim.blue;
search = {
matches.background = dim.cyan;
bar = {
foreground = dim.cyan;
background = dim.yellow;
};
};
};
in
{
# Include fonts packages
home.packages = [ pkgs.rice.font.monospace.package ];
programs.alacritty = {
enable = true;
settings = {
key_bindings = [{
key = "Return";
mods = "Control|Shift";
action = "SpawnNewInstance";
}];
# env.TERM = "xterm-256color";
env = {
TERM = "alacritty";
WINIT_X11_SCALE_FACTOR = "1";
};
scrolling.history = 3000;
font = {
normal.family = pkgs.rice.font.monospace.name;
inherit (pkgs.rice.font.monospace) size;
};
window.opacity = pkgs.rice.opacity;
mouse = {
# hide_when_typing = true;
hints.modifiers = "Control";
};
colors = strPalette // {
selection.text = "CellForeground";
search.matches.foreground = "CellForeground";
};
};
};
}