aboutsummaryrefslogtreecommitdiffstats
path: root/nix-conf
diff options
context:
space:
mode:
Diffstat (limited to 'nix-conf')
-rw-r--r--nix-conf/darwin/configuration.nix5
-rw-r--r--nix-conf/home/includes/alacritty.nix69
-rw-r--r--nix-conf/home/includes/darwin.nix1
3 files changed, 73 insertions, 2 deletions
diff --git a/nix-conf/darwin/configuration.nix b/nix-conf/darwin/configuration.nix
index b17bdb2..6a16dc1 100644
--- a/nix-conf/darwin/configuration.nix
+++ b/nix-conf/darwin/configuration.nix
@@ -20,6 +20,7 @@
};
environment.systemPackages = with pkgs; [
+ alacritty
((emacsPackagesFor emacs-macport).emacsWithPackages (ps: [
ps.vterm
ps.multi-vterm
@@ -43,14 +44,14 @@
pkgs.fira-code
];
+ system.defaults.dock.autohide = true;
system.defaults.dock.persistent-apps = [
{ app = "/System/Applications/System Settings.app"; }
{ app = "/Applications/Nix Apps/YouTube Music.app"; }
{ app = "/Applications/Nix Apps/Google Chrome.app"; }
{ app = "/Applications/Nix Apps/Firefox.app"; }
{ app = "/Applications/Nix Apps/Slack.app"; }
- { app = "/Applications/Nix Apps/iTerm2.app"; }
- { app = "/Applications/Nix Apps/Ghostty.app"; }
+ { app = "/Applications/Nix Apps/Alacritty.app"; }
{ app = "/Applications/Nix Apps/Emacs.app"; }
{ app = "/Applications/Nix Apps/zoom.us.app"; }
{ app = "/Applications/Nix Apps/1Password.app"; }
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
];