feat: initial macos setup

This commit is contained in:
2026-08-02 00:29:15 -04:00
parent fc86577c27
commit 925dd4114a
12 changed files with 210 additions and 47 deletions
+8 -3
View File
@@ -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" ]
);
};
}