From 990b86bb1b504d0a21f1168753313b15159952de Mon Sep 17 00:00:00 2001 From: William Hsieh Date: Wed, 4 Sep 2024 11:53:00 +0800 Subject: [PATCH] refactor(nix): use `lib.optionalAttrs` --- home/alacritty.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/home/alacritty.nix b/home/alacritty.nix index 2be2f049..80033262 100644 --- a/home/alacritty.nix +++ b/home/alacritty.nix @@ -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;