aboutsummaryrefslogtreecommitdiff
path: root/users/programs/alacritty.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2025-07-24 17:32:07 -0700
committerFranck Cuny <franck@fcuny.net>2025-07-25 08:47:10 -0700
commit270546eea50f4ca24c12945026ef11b74fefce75 (patch)
treee4ea43b099a66ef94dd06605d268011d537cdb41 /users/programs/alacritty.nix
parentfix configuration for work machine (diff)
downloadinfra-270546eea50f4ca24c12945026ef11b74fefce75.tar.gz
add configuration for alacritty
Diffstat (limited to 'users/programs/alacritty.nix')
-rw-r--r--users/programs/alacritty.nix61
1 files changed, 61 insertions, 0 deletions
diff --git a/users/programs/alacritty.nix b/users/programs/alacritty.nix
new file mode 100644
index 0000000..f878cd1
--- /dev/null
+++ b/users/programs/alacritty.nix
@@ -0,0 +1,61 @@
+{ ... }:
+{
+ programs.alacritty = {
+ enable = true;
+ settings = {
+ window = {
+ dimensions = {
+ columns = 80;
+ lines = 24;
+ };
+ # Window padding (changes require restart)
+ #
+ # Blank space added around the window in pixels. This padding is scaled
+ # by DPI and the specified value is always added at both opposing sides.
+ padding = {
+ x = 2;
+ y = 2;
+ };
+ # Spread additional padding evenly around the terminal content.
+ dynamic_padding = false;
+ # Window decorations
+ #
+ # Values for `decorations`:
+ # - full: Borders and title bar
+ # - none: Neither borders nor title bar
+ decorations = "full";
+ startup_mode = "Windowed";
+ dynamic_title = true;
+ };
+ scrolling = {
+ history = 10000;
+ multiplier = 3;
+ };
+ font = {
+ normal.family = "Source Code Pro";
+ bold = {
+ family = "Source Code Pro";
+ style = "Bold";
+ };
+ italic = {
+ family = "Source Code Pro";
+ style = "Italic";
+ };
+ size = 16;
+ offset = {
+ x = 0;
+ y = 0;
+ };
+ glyph_offset = {
+ x = 0;
+ y = 0;
+ };
+ };
+ bell = {
+ animation = "EaseOutExpo";
+ duration = 0;
+ color = "0xffffff";
+ };
+ };
+ };
+}