aboutsummaryrefslogtreecommitdiff
path: root/users
diff options
context:
space:
mode:
Diffstat (limited to 'users')
-rw-r--r--users/profiles/mac.nix3
-rw-r--r--users/programs/alacritty.nix61
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";
+ };
+ };
+ };
+}