all repos — dotfiles @ 4d8fdd2028e8bbbdd9322d061882d63edfea36fa

my *nix dotfiles

nix/darwin: switch to alacritty
Anirudh Oppiliappan x@icyphox.sh
Mon, 03 Jun 2024 13:24:51 +0300
commit

4d8fdd2028e8bbbdd9322d061882d63edfea36fa

parent

e0d420bc317685f63d129fb25ef02dd44d52259d

3 files changed, 19 insertions(+), 5 deletions(-)

jump to
M programs/alacritty.nixprograms/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.nixprograms/common.nix

@@ -13,6 +13,7 @@ ./readline.nix

./neovim.nix ./bash.nix ./ssh.nix + ./alacritty.nix ]; programs = {
M programs/default.nixprograms/default.nix

@@ -9,7 +9,6 @@

imports = [ ./firefox.nix ./common.nix - ./alacritty.nix ]; programs = {