Skip to content

Commit

Permalink
refactor(nix): use lib.optionalAttrs
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamHsieh committed Sep 4, 2024
1 parent 4c6bd80 commit 990b86b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions home/alacritty.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@
TERM = "xterm-256color";
LANG = "C.UTF-8";
CC = "gcc";
} // (if pkgs.stdenv.isDarwin then {
} // (lib.optionalAttrs pkgs.stdenv.isDarwin {
# NOTE: ssh with `-Y` to setup remote DISPLAY properly
# remember to start xquartz
DISPLAY = ":0";
} else { });
});
font = {
normal.family = "MesloLGLDZ Nerd Font Mono";
size = 14;
Expand Down

0 comments on commit 990b86b

Please sign in to comment.