diff options
| author | Franck Cuny <franck@fcuny.net> | 2025-07-24 17:32:07 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2025-07-25 08:47:10 -0700 |
| commit | 270546eea50f4ca24c12945026ef11b74fefce75 (patch) | |
| tree | e4ea43b099a66ef94dd06605d268011d537cdb41 /users | |
| parent | fix configuration for work machine (diff) | |
| download | infra-270546eea50f4ca24c12945026ef11b74fefce75.tar.gz | |
add configuration for alacritty
Diffstat (limited to 'users')
| -rw-r--r-- | users/profiles/mac.nix | 3 | ||||
| -rw-r--r-- | users/programs/alacritty.nix | 61 |
2 files changed, 63 insertions, 1 deletions
diff --git a/users/profiles/mac.nix b/users/profiles/mac.nix index d889d21..136a7b2 100644 --- a/users/profiles/mac.nix +++ b/users/profiles/mac.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ self, pkgs, ... }: { imports = [ ./1password.nix @@ -11,6 +11,7 @@ ./secrets.nix ./ssh.nix ./starship.nix + "${self}/users/programs/alacritty.nix" ]; home.packages = with pkgs; [ 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"; + }; + }; + }; +} |
