Re-add alacritty
This commit is contained in:
parent
41386749b8
commit
25b286786d
|
@ -6,6 +6,7 @@
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./modules/alacritty.nix
|
||||||
./modules/autorandr.nix
|
./modules/autorandr.nix
|
||||||
./modules/awesome.nix
|
./modules/awesome.nix
|
||||||
./modules/copyq.nix
|
./modules/copyq.nix
|
||||||
|
|
34
lib/nixos/home-manager/modules/alacritty.nix
Normal file
34
lib/nixos/home-manager/modules/alacritty.nix
Normal 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"; };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -8,7 +8,7 @@ in
|
||||||
|
|
||||||
tmuxinator.enable = true;
|
tmuxinator.enable = true;
|
||||||
|
|
||||||
terminal = "xterm-256color";
|
terminal = "tmux-256color";
|
||||||
|
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
unbind C-b
|
unbind C-b
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
# fc-list : family | sort | grep "Nerd Font"
|
# fc-list : family | sort | grep "Nerd Font"
|
||||||
|
|
||||||
package = pkgs.nerdfonts.override { fonts = [ "Meslo" ]; };
|
package = pkgs.nerdfonts.override { fonts = [ "Meslo" ]; };
|
||||||
size = "14";
|
size = "10";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue