aboutsummaryrefslogtreecommitdiffstats
path: root/nix-conf/home
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2025-09-25 12:47:34 +0100
committerDavid Morgan <djm_uk@protonmail.com>2025-09-25 12:47:34 +0100
commite8a097ef9b4bc75ebd6dada09998e8477ee1fbfb (patch)
treeefa95907d2905e71500cc502a2e9188f0999c89b /nix-conf/home
parentfa7381ab8c4ef62bd09d917925f74693ddad0f99 (diff)
downloaddotfiles-e8a097ef9b4bc75ebd6dada09998e8477ee1fbfb.tar.gz
Try alacritty on darwin
Diffstat (limited to 'nix-conf/home')
-rw-r--r--nix-conf/home/includes/alacritty.nix69
-rw-r--r--nix-conf/home/includes/darwin.nix1
2 files changed, 70 insertions, 0 deletions
diff --git a/nix-conf/home/includes/alacritty.nix b/nix-conf/home/includes/alacritty.nix
new file mode 100644
index 0000000..c9a7dfb
--- /dev/null
+++ b/nix-conf/home/includes/alacritty.nix
@@ -0,0 +1,69 @@
+{ lib, pkgs, ... }:
+{
+ programs.alacritty = {
+ enable = true;
+ # On darwin we will install this with nix-darwin instead
+ package = if pkgs.stdenv.isDarwin then null else pkgs.alacritty;
+ settings = {
+ font = {
+ normal.family = "MesloLGS NF";
+ size = 12;
+ };
+
+ selection = {
+ save_to_clipboard = true;
+ };
+
+ keyboard.bindings = [
+ {
+ key = "Insert";
+ mods = "Shift";
+ action = "Paste";
+ }
+ ];
+
+ window = lib.optionalAttrs pkgs.stdenv.isDarwin {
+ option_as_alt = "OnlyLeft";
+ };
+
+ colors = {
+ primary = {
+ background = "#000000";
+ foreground = "#c7c7c7";
+ };
+
+ cursor = {
+ text = "#000000";
+ cursor = "#c7c7c7";
+ };
+
+ selection = {
+ text = "#000000";
+ background = "#b5d5ff";
+ };
+
+ normal = {
+ black = "#000000";
+ red = "#c91b00";
+ green = "#00c200";
+ yellow = "#c7c400";
+ blue = "#0225c7";
+ magenta = "#ca30c7";
+ cyan = "#00c5c7";
+ white = "#c7c7c7";
+ };
+
+ bright = {
+ black = "#686868";
+ red = "#ff6e67";
+ green = "#5ff967";
+ yellow = "#fefb67";
+ blue = "#6871ff";
+ magenta = "#ff76ff";
+ cyan = "#5ffdff";
+ white = "#feffff";
+ };
+ };
+ };
+ };
+}
diff --git a/nix-conf/home/includes/darwin.nix b/nix-conf/home/includes/darwin.nix
index 4b75a03..695f50b 100644
--- a/nix-conf/home/includes/darwin.nix
+++ b/nix-conf/home/includes/darwin.nix
@@ -30,6 +30,7 @@ in
{
imports = [
./dev-common.nix
+ ./alacritty.nix
./ghostty.nix
./karabiner.nix
];