mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
enable alacritty
This commit is contained in:
parent
0be59680b4
commit
73fc62c6ba
2 changed files with 29 additions and 0 deletions
28
modules/desktop/alacritty.nix
Normal file
28
modules/desktop/alacritty.nix
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
config = (pkgs.formats.toml { }).generate "alacritty.toml"
|
||||||
|
{
|
||||||
|
env.TERM = "xterm-256color";
|
||||||
|
font.size = 12;
|
||||||
|
window = {
|
||||||
|
dynamic_padding = true;
|
||||||
|
resize_increments = true;
|
||||||
|
dimensions = { columns = 120; lines = 40; };
|
||||||
|
};
|
||||||
|
keyboard.bindings = [
|
||||||
|
{ action = "ScrollHalfPageDown"; mods = "Shift"; key = "PageDown"; }
|
||||||
|
{ action = "ScrollHalfPageUp"; mods = "Shift"; key = "PageUp"; }
|
||||||
|
];
|
||||||
|
colors = {
|
||||||
|
primary.background = "0x1e1e1e";
|
||||||
|
primary.foreground = "0xffffff";
|
||||||
|
};
|
||||||
|
import = [ "${pkgs.alacritty-theme}/tango_dark.toml" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
in
|
||||||
|
{
|
||||||
|
environment.etc."xdg/alacritty.toml".source = config;
|
||||||
|
environment.systemPackages = [ pkgs.alacritty ];
|
||||||
|
}
|
|
@ -6,6 +6,7 @@ with lib;
|
||||||
};
|
};
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
|
./alacritty.nix
|
||||||
./chromium.nix
|
./chromium.nix
|
||||||
./firefox.nix
|
./firefox.nix
|
||||||
./kitty.nix
|
./kitty.nix
|
||||||
|
|
Loading…
Reference in a new issue