my nix dotfiles

nix/darwin: switch to alacritty

+19 -5
+18 -4
programs/alacritty.nix
··· 1 1 { config 2 2 , pkgs 3 + , lib 3 4 , ... 4 5 }: 6 + let 7 + isDarwin = lib.strings.hasSuffix "darwin" pkgs.stdenv.hostPlatform.system; 5 8 9 + fontConfig = 10 + if isDarwin then { 11 + normal.family = "SF Mono"; 12 + bold = { family = "SF Mono"; style = "Semibold"; }; 13 + size = 15.0; 14 + offset.y = 5; 15 + } 16 + else { 17 + normal = "Input"; 18 + size = 12.0; 19 + }; 20 + in 6 21 { 7 22 programs.alacritty = { 8 23 enable = true; ··· 17 32 dynamic_padding = true; 18 33 decorations = "None"; 19 34 startup_mode = "Maximized"; 20 - }; 21 35 22 - font = { 23 - size = 12.0; 24 36 25 - normal.family = "Input"; 37 + option_as_alt = "OnlyLeft"; 26 38 }; 27 39 40 + font = fontConfig; 28 41 cursor.style = "Beam"; 42 + 29 43 30 44 colors = { 31 45 primary = {
+1
programs/common.nix
··· 13 13 ./neovim.nix 14 14 ./bash.nix 15 15 ./ssh.nix 16 + ./alacritty.nix 16 17 ]; 17 18 18 19 programs = {
-1
programs/default.nix
··· 9 9 imports = [ 10 10 ./firefox.nix 11 11 ./common.nix 12 - ./alacritty.nix 13 12 ]; 14 13 15 14 programs = {