feat: initial macos setup
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ pkgs, ... }:
|
||||
{ pkgs, lib, isDarwin, ... }:
|
||||
|
||||
{
|
||||
programs.zsh = {
|
||||
@@ -12,7 +12,7 @@
|
||||
la = "ls -A";
|
||||
l = "ls -CF";
|
||||
tp = "tree -I '__init__*' -I '__pycache__'";
|
||||
clear = "/run/current-system/sw/bin/clear";
|
||||
clear = "${pkgs.ncurses}/bin/clear";
|
||||
zide = "zellij --layout ide";
|
||||
};
|
||||
|
||||
@@ -45,6 +45,11 @@
|
||||
'';
|
||||
};
|
||||
home.sessionVariables = {
|
||||
TERMINFO_DIRS = "${pkgs.ghostty}/share/terminfo:${pkgs.ncurses}/share/terminfo";
|
||||
# ghostty (GTK) ships terminfo under $out/share on Linux. The macOS
|
||||
# ghostty-bin bundles its own, so only add ncurses there.
|
||||
TERMINFO_DIRS = lib.concatStringsSep ":" (
|
||||
lib.optional (!isDarwin) "${pkgs.ghostty}/share/terminfo"
|
||||
++ [ "${pkgs.ncurses}/share/terminfo" ]
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user