nix/darwin: switch to alacritty
Anirudh Oppiliappan x@icyphox.sh
Mon, 03 Jun 2024 13:24:51 +0300
3 files changed,
19 insertions(+),
5 deletions(-)
M
programs/alacritty.nix
→
programs/alacritty.nix
@@ -1,8 +1,23 @@
{ config , pkgs +, lib , ... }: +let + isDarwin = lib.strings.hasSuffix "darwin" pkgs.stdenv.hostPlatform.system; + fontConfig = + if isDarwin then { + normal.family = "SF Mono"; + bold = { family = "SF Mono"; style = "Semibold"; }; + size = 15.0; + offset.y = 5; + } + else { + normal = "Input"; + size = 12.0; + }; +in { programs.alacritty = { enable = true;@@ -17,15 +32,14 @@ padding.y = 10;
dynamic_padding = true; decorations = "None"; startup_mode = "Maximized"; - }; - font = { - size = 12.0; - normal.family = "Input"; + option_as_alt = "OnlyLeft"; }; + font = fontConfig; cursor.style = "Beam"; + colors = { primary = {
M
programs/common.nix
→
programs/common.nix
@@ -13,6 +13,7 @@ ./readline.nix
./neovim.nix ./bash.nix ./ssh.nix + ./alacritty.nix ]; programs = {
M
programs/default.nix
→
programs/default.nix
@@ -9,7 +9,6 @@
imports = [ ./firefox.nix ./common.nix - ./alacritty.nix ]; programs = {