This commit is contained in:
Harivansh Rathi 2026-03-13 16:44:38 -04:00
parent fc8675e1b0
commit 550fca2383
13 changed files with 151 additions and 163 deletions

View file

@ -7,19 +7,6 @@
home.file.".oh-my-zsh/custom/themes/agnoster.zsh-theme".source =
../config/agnoster.zsh-theme;
home.activation.removeLegacyZshLinks = lib.hm.dag.entryBefore ["checkLinkTargets"] ''
for path in "$HOME/.zshenv" "$HOME/.zshrc"; do
if [ -L "$path" ]; then
target="$(readlink "$path")"
case "$target" in
dots/zsh/*|"$HOME"/dots/zsh/*)
rm -f "$path"
;;
esac
fi
done
'';
home.activation.ensureOhMyZshCache = lib.hm.dag.entryAfter ["writeBoundary"] ''
mkdir -p "${config.xdg.cacheHome}/oh-my-zsh"
'';
@ -56,6 +43,9 @@
envExtra = ''
. "$HOME/.cargo/env"
# Ghostty shell integration expects a resource directory; the Nix app
# bundle lives in the store instead of /Applications.
export GHOSTTY_RESOURCES_DIR="${pkgs.ghostty-bin}/Applications/Ghostty.app/Contents/Resources/ghostty"
'';